View previous topic :: View next topic |
Author |
Message |
turtles Veteran
Joined: 31 Dec 2004 Posts: 1656
|
Posted: Wed Oct 02, 2013 10:48 pm Post subject: Help Testing mod_rewrite on apache 2.4 |
|
|
Greetings all I am testing out mod_rewrite on apache 2.4
I have a directory called test in htdocs.
I have 2 files index.html
And rewriteme.html
my rewrite rule is:
Code: |
Alias /test /var/www/localhost/htdocs/test/
<Directory test>
RewriteEngine On
RewriteRule ^/test/?$ /test/rewriteme.html [R]
#RewriteRule ^/test/* /test/rewriteme.html [R]
# Next test the HTTP Authorization data should be passed
# to the CGI scripts running from this directory
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</Directory> |
Which I think says anything I try to go to in test will redirect me to test/rewriteme.html
however when I go to localhost/test I can see index.html's contents.
Any thoughts?
EDIT: I don't have to put anything special in /etc/conf.d/apache2 do I ? _________________ Donate to Gentoo |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1656
|
|
Back to top |
|
|
|