| Posted: 22 June 2009 at 11:59am | IP Logged
|
|
|
I'm trying to install ultimate seo urls for oscommerce on a windows server. My host has Isapi rewrite installed. I'm trying to rewrite the code from the .htacces file for the httpd. ini file, but it's not working. So I thing i'm doing it wrong.
original .htaccess code:
+FollowSymLinks RewriteEngine On RewriteBase /
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} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
What I have so far:
UriMatchPrefix /catalog/ UriFormatPrefix /catalog/
# From Ultimate SEO URLs RewriteRule ([^?]*)-p-([^?]*)\.html(?:\?(.*))? /product_info.php\?products_id=$2?3&$3{QUERY_STRING}[I,L] RewriteRule ([^?]*)-c-([^?]*)\.html(?:\?(.*))? /index.php\?cPath=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-m-([^?]*)\.html(?:\?(.*))? /index.php\?manufacturers_id=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-pi-([^?]*)\.html(?:\?(.*))? /popup_image.php\?pID=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-t-([^?]*)\.html(?:\?(.*))? /articles.php\?tPath=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-a-([^?]*)\.html(?:\?(.*))? /article_info.php\?articles_id=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-pr-([^?]*)\.html(?:\?(.*))? /product_reviews.php\?products_id=$2&%?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-pri-([^?]*)\.html(?:\?(.*))? /product_reviews_info.php\?products_id=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-i-([^?]*)\.html(?:\?(.*))? /information.php\?info_id=$2?3&$3{QUERY_STRING} [I,L] RewriteRule ([^?]*)-links-([^?]*)\.html(?:\?(.*))? /links.php\?lPath=$2?3&$3{QUERY_STRING} [I,L]
UriMatchPrefix UriFormatPrefix
Oscommerce is installed in the root , the first directory is catalog and when you open the shop you get. http://www.claudiavandijk.com/catalog/index.php?language=en
I installed the httpd.ini file in the root of my site.
Can someone please help me, because I can't figure it out myself. Thanks
|