Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

My mod rewrite isn't working

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

Junior Member

10+ Year Member

joined:July 22, 2005
posts:86
votes: 0


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]

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

Junior Member

10+ Year Member

joined:July 22, 2005
posts:86
votes: 0


anyone?!
7:07 pm on June 19, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Jan 4, 2006
posts:307
votes: 0


Try this simple redirect.

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

Milan

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

New User

5+ Year Member

joined:June 19, 2007
posts:27
votes: 0


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]
4:23 am on June 20, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


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

Jim