Forum Moderators: phranque
RewriteCond %{SERVER_PORT}!^443$
RewriteRule ^(.*) [secure.my-domain.com...] [R]
It is redirecting nicely to [secure.my-domain.com,...] but I want it to keep the filename and querystring...so:
[my-domain.com...]
should rewrite to:
[secure.my-domain.com...]
what am I missing?
You are missing a back-reference to the 'filename'.
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://secure.my-domain.com/[b]$1[/b] [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{QUERY_STRING} (.*)
RewriteRule (.*) https://secure.my-domain.com/$1[b]?%1[/b] [R=301,L]
Jim
secure.my-domain.com is a subdomain in cpanel...
[secure.my-domain.com...] is pointing to my-domain.com/secure/
but...
[secure.my-domain.com...] is pointing to public_html
how can I fix it so accessing it on port 443 will also fetch files from the /secure/ directory?
Maybe I'm approaching this the wrong way...if I edit the ip:443 entry in httpd.conf to point to the subdirectory, I get a blank page...am I creating an endless loop? You can probably see what I'm trying to do...how should I be going about it?
Lost and thankful for your help,
Helmet.