Forum Moderators: phranque
#################
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
#SHOULD REWRITE ALL MADE UP PAGE NAMES TO THE EVENT PHP PAGE WITH NICE LI'L QUERYSTRING
RewriteRule ^/events/(.+)$ events.php?page=$1 [NC]
Options +Indexes +MultiViews +FollowSymlinks
IndexIgnore *
###################
It is forwarding to the correct .php page but with no querystring.
Should not this work? I'm sure I've done this before.....
thanks for any suggestions.
cheers,
George
RewriteRule ^events/(.+)$ events.php?page=$1 [NC]
...but still nothing is passed to events.php via a querystring.
Even if I set the rule to be
RewriteRule ^events/(.+)$ events.php?page=hardcoded_msg [NC]
I do not receive anything.
Have you any more sugestions as to why this is happening?
thanks,
George
Options +FollowSymlinks [b]-MultiViews[/b]
Another thing you can try is to inject a syntax error into your rule; If the server doesn't throw an error (check your server error log file), then perhaps mod_rewrite isn't available to you.
Other than that, it's down to saying the RewriteRule pattern must exactly match the requested URL-path, and if it does not, no rewrite will occur.
Jim