Need help with .htaccess with the rewrite of the url

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
keithbyrne
Forum Newbie
Posts: 18
Joined: Thu Sep 20, 2007 5:20 am

Need help with .htaccess with the rewrite of the url

Post by keithbyrne »

Hey guys can u help me please, i have just installed a seo program within my website. its mean to turn my pages with this address :

http://oscommerce.local/catalog/index.p ... 960348b076

to this

http://oscommerce.local/catalog/belly-b ... -1_16.html

I have this in my .htaccess file

Code: Select all

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /catalog/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
Please help if you can my website has been down for over a month now and i dont know what to do !!!

Keith
Post Reply