| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|RewriteRule not executed|
I am trying to use mod_rewrite for the first time and am having no success
When I enter the url http://www.example.com/some-data.html I go to that file instead of http://www.example.com/some-more-data.html that I am hopeing to see.
RewriteRule ^some-data\.html$ some-more-data.html
Allow from all
ScriptAlias /cgi-bin /usr/local/www/vhosts/example.com/cgi-bin
Allow from all
No error messages and no clues when I restart apache. the url rewrite just doesn't happen.
Thanks for any help you can give.
In order to match, your RewriteRule pattern will need a leading slash.
I added the leading slash and that didn't change the result.
Next I added the leading slash to the destination url and this didn't change the result either.
Could you offer another possiblity that I could try?
You'll need AllowOverride Options (at a minimum), followed by either Options FollowSymLinks or Options SymLinksIfOwnerMatch, in the vHost container itself, before the RewriteEngine on directive.
If you get a server error, you should check your server error log, as it will likely tell you what the problem is.
[edited by: jdMorgan at 12:36 am (utc) on Oct. 20, 2006]
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved