By magpies on
Hi,
I tried using both Ionics Rewrite and Helicon Rewrite on IIS. All works fine except for the paging issue. Whenever there are multiple pages, it either generates a "The page cannot be found" when using Ionics Rewrite OR it keeps loading the same page and just won't go to the next page when used with Helicon Rewrite.
Can someone kindly advise please?
(eg..?page=1, ?page=2, ?page=3............)
Many thanks.
Comments
Rules?
What rules are you using?
Helicon Rewrite
blur, thanks for your reply.
I used the following:
# Helicon ISAPI_Rewrite configuration file
# Version 3.0.0.26
# Accept a url with the following directories and pass them through unchanged.
RewriteRule /(?:misc|files|modules|themes|sites|uploads)/(.*) $0 [I,L]
# Make URLs sane
RewriteRule /cron\.php $0 [I,L]
RewriteRule /index\.php.* $0 [I,L]
RewriteRule /install\.php.* $0 [I,L]
RewriteRule /update\.php.* $0 [I,L]
RewriteRule /xmlrpc\.php $0 [I,L]
# activate rewriting for custom modules (for e.g. banner.module)
RewriteRule /banner_db\.php $0 [I,L]
RewriteRule /banner_file\.php $0 [I,L]
# deactivate rewriting for custom modules (for e.g. robotstxt.module)
RewriteRule /robots\.txt.* $0 [I,L]
RewriteRule /(.*)\?(.*) /index.php\?q=$1&$2 [I,L]
RewriteRule /(.*) /index.php\?q=$1 [I,L]
Ionics Rewrite
I used the following for Ionics.
Any idea what went wrong?
========================
RewriteLog C:\temp\iirfLog.out
RewriteLogLevel 3
RewriteFilterPriority HIGH
# Accept a url with the following directories and pass them through unchanged.
RewriteRule ^/misc/(.*)$ /misc/$1 [I,L]
RewriteRule ^/files/(.*)$ /files/$1 [I,L]
RewriteRule ^/modules/(.*)$ /modules/$1 [I,L]
RewriteRule ^/themes/(.*)$ /themes/$1 [I,L]
RewriteRule ^/sites/(.*)$ /sites/$1 [I,L]
RewriteRule ^/uploads/(.*)$ /uploads/$1 [I,L]
RewriteRule ^/css/(.*)$ /css/$1 [I,L]
RewriteRule ^/images/(.*)$ /images/$1 [I,L]
# for modules that provide their own js (tinymce,img assist etc)
RewriteRule ^(.*\.js)$ $1 [I,L]
RewriteRule ^(.*\.gif)$ $1 [I,L]
RewriteRule ^(.*\.png)$ $1 [I,L]
RewriteRule ^/modules/tinymce/(.*)$ /modules/tinymce/$1 [I,L]
# Make URLs sane
RewriteRule ^/cron\.php$ /cron.php [I,L]
RewriteRule ^/index\.php\?q\=(.*)$ /index.php?q=$1 [I,L]
RewriteRule ^/update\.php\?op\=(.*)$ /update.php?op=$1 [I,L]
RewriteRule ^/update\.php /update.php [I,L]
RewriteRule ^/xmlrpc\.php /xmlrpc.php [I,L]
RewriteRule ^/robots\.txt /robots.txt [I,L]
# Handle query strings on the end
RewriteRule /(.*)\?(.*)$ /index.php\?q=$1&$2 [I,L]
# now pass through to the generic handler
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.php?q=$1 [I,L]
Sample URL for rewriting?
Unfortunatelly, these rules are not enough to figure out what's going wrong.
Can you also post a pair of URLs, the one before rewriting and the one expected after rewriting? In general, can you describe your URL schema and how pages are defined in your URL?
QSA
I'm not sure, but may be you need to add the QSA option in your rewrite rules so that original querystring parameters are automatically copied to the rewritten url. For sure this option is supported by the latest version of ISAPI_Rewrite, but I'm not sure about IIRF.
Hi, Managed to resolve the
Hi,
Managed to resolve the issue by using Helicon Rewrite 2.X, with the same rules above. 3.X gave some probs.
Am sticking with 2.X
thanks