Forum Moderators: phranque

Message Too Old, No Replies

Rewritebase / not working right

         

darkane

3:25 am on Mar 18, 2004 (gmt 0)

10+ Year Member



hey all I hope someone can help me. the problem.
I am trying to use mod_rewrite for a site that has queries passed to it via the url to know which page to load.
it rewrites but not the right file or the right address that I wished for.
my .htaccess looks like..
RewriteEngine On
RewriteBase/
#RewriteOptionsinherit
#RewriteLog"/var/www/logs/rewrite_log"
#RewriteLogLevel9
# now the rewriting rules
RewriteRule^Accounting\.html$base3.html?display=22[R,L]

except it gets returned as
[website...]
base3.html is the page I want to load but that isnt what Im getting, Im gettin the old version, base.html.
and I would like the url to just be [website...]
any help with this would be greatly appreciated thanks in advance.

Birdman

8:29 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think a leading slash on the new URL is all that's needed.

RewriteRule ^Accounting\.html$ /base3.html?display=22[R,L]

Birdman