
Originally Posted by
Louis
Hi,
I changed the httpd.ini as per your post, activated the re-write and received the following errors:
Line 51: Unrecognized string: UriMatchPrefix
Line 52: Unrecognized string: UriFormatPrefix
Could you PM me your copy of the httpd.ini file (or post as reply to this) so I can compare.
Hi Louis,
From the look of the error, the Isapi_ReWrite filter is not configured properly. The UriMatchPrefix and UriFormatPrefix is the replacement code for the ReWriteBase rule for Apache that enables you to specify the relative path of the shop.
Are you using the latest copy of the Isapi_ReWrite filter?
Here is my httpd.ini file:
Code:
[ISAPI_Rewrite]
UriMatchPrefix /demo/
UriFormatPrefix /demo/
# 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]
# For Open Operations Info Manager
RewriteRule .*-i-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=info_manager&pages_id=$1?2&$2: [I,L]
# For dreamscape's News & Articles Manager
RewriteRule news/?(?:\?(.*))? index.php\?main_page=news?1&$1: [I,L]
RewriteRule news/rss\.xml(?:\?(.*))? index.php\?main_page=news_rss?1&$1: [I,L]
RewriteRule news/archive/?(?:\?(.*))? index.php\?main_page=news_archive?1&$1: [I,L]
RewriteRule news/([0-9]{4})-([0-9]{2})-([0-9]{2})\.html(?:\?(.*))? index.php\?main_page=news&date=$1-$2-$3?4&$4: [I,L]
RewriteRule news/archive/([0-9]{4})-([0-9]{2})\.html(?:\?(.*))? index.php\?main_page=news_archive&date=$1-$2?3&$3: [I,L]
RewriteRule news/.*-a-([0-9]+)-comments\.html(?:\?(.*))? /index.php?main_page=news_comments&article_id=$1?2&$2: [I,L]
RewriteRule news/.*-a-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=news_article&article_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
Cheers,
Bjorn
Bookmarks