Welcome to WebmasterWorld Guest from 54.145.166.96

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)

5+ 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]

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

5+ Year Member



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

5+ Year Member



Try this simple redirect.

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

Milan

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

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

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



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

Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month