Forum Moderators: phranque

Message Too Old, No Replies

My mod rewrite isn't working

         

Crump

4:10 pm on Jun 19, 2007 (gmt 0)

10+ Year Member



I am trying to force a secure connection for phpmyadmin. The following in my httpd.conf doesn't seem to be working (it is under the correct directory). The rewrite modules is loaded. What am I missing?

<Directory "/var/www/html">
Options -Indexes +FollowSymLinks
AllowOverride None

RewriteEngine on
RewriteBase /
RewriteRule ^/phpmyadmin/(.*) [%{SERVER_NAME}...] [R,L]

Order allow,deny
Allow from all

</Directory>

Thanks!

[edited by: Crump at 4:10 pm (utc) on June 19, 2007]

Crump

6:52 pm on Jun 19, 2007 (gmt 0)

10+ Year Member



anyone?!

milanmk

7:07 pm on Jun 19, 2007 (gmt 0)

10+ Year Member



Try this simple redirect.

Redirect 301 /phpmyadmin/ [example.com...]

Milan

alexdunae

7:52 pm on Jun 19, 2007 (gmt 0)

10+ Year Member



Try removing the first slash


RewriteRule ^phpmyadmin/(.*) https://%{SERVER_NAME}/phpmyadmin/$1 [R,L]

instead of


RewriteRule ^/phpmyadmin/(.*) https://%{SERVER_NAME}/phpmyadmin/$1 [R,L]

jdMorgan

4:23 am on Jun 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The initial slash will be required in httpd.conf (server config) context.

Jim