Forum Moderators: phranque
I want [url.com...] (and other query string from blah/-> onwards) to go to [url.com...] ('/b-gen/' or other args). My Blah message forum can handle these args, just I cant get my mod rewrite to work. Also idealy I'd like [url.com...] to replace [url.com...] eventually, but anything that works is a starter :)
I've got this;
Options All Indexes
IndexOptions FancyIndexingRewriteEngine On
RewriteBase /forum
RewriteRule ^(.*) /forum/blah/Blah.pl?$1
I know some extra folder bits are needed in either the first part of rewrite rule or the base (havent had experience with using base), but I've tried a few combinations with no luck. Also have tried putting this htacess in each different folder; root/forum/blah - no luck.
Thanks in advance :)
.htaccess in Web root directory:
RewriteEngine On
# Prevent rewrite looping
RewriteCond %{REQUEST_URI} !^/forum/blah/Blah\.pl
# Rewrite to Blah.pl with requested filename in query string
RewriteRule ^forum/blah(.*)$ /forum/blah/Blah.pl?$1 [L]
Jim