homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
My mod rewrite isn't working
Crump




msg:3372291
 4:10 pm on Jun 19, 2007 (gmt 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/(.*) https://%{SERVER_NAME}/phpmyadmin/$1 [R,L]

Order allow,deny
Allow from all

</Directory>

Thanks!

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

 

Crump




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

anyone?!

milanmk




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

Try this simple redirect.

Redirect 301 /phpmyadmin/ https://example.com/phpmyadmin/

Milan

alexdunae




msg:3372584
 7:52 pm on Jun 19, 2007 (gmt 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]

jdMorgan




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

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

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved