Originally Posted by
wilpack
where do I get the "httpd.ini to redirect your url requests." file?
Place the following in a file called httpd.ini and upload the file to the root of your store.
PHP Code:
[ISAPI_Rewrite]
#UriMatchPrefix /demo/
#UriFormatPrefix /demo/
#RewriteRule /(?!editors)(.*) /$1 [L]
# From Ultimate SEO URLs
RewriteRule .*-p-(.*)\.html(?:\?(.*))? /index.php\?main_page=product_info&products_id=$1?2&$2: [I,L]
RewriteRule .*-c-(.*)\.html(?:\?(.*))? /index.php\?main_page=index&cPath=$1?2&$2: [I,L]
RewriteRule .*-m-([0-9]+)\.html(?:\?(.*))? /index.php\?main_page=index&manufacturers_id=$1?2&$2: [I,L]
RewriteRule .*-pi-([0-9]+)\.html(?:\?(.*))? /index.php\?main_page=popup_image&pID=$1?2&$2: [I,L]
RewriteRule .*-pr-([0-9]+)\.html(?:\?(.*))? /index.php\?main_page=product_reviews&products_id=$1?2&$2: [I,L]
RewriteRule .*-pri-([0-9]+)\.html(?:\?(.*))? /index.php\?main_page=product_reviews_info&products_id=$1?2&$2: [I,L]
# All other pages
# Don't rewrite real files or directories
#There is no way to convert these conditions in the current ISAPI_Rewrite version:
#RewriteCond %{REQUEST_FILENAME} !-f [NC]
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*).html /index.php?main_page=$1&%{QUERY_STRING} [L]
#Only rule could be converted to:
RewriteRule (.*)\.html(?:\?(.*))? /index.php\?main_page=$1?2&$2: [I,L]
#UriMatchPrefix
#UriFormatPrefix
Bookmarks