URL rewrite help needed
4 posts
• Page 1 of 1
- heliconnewb
- Posts: 2
- Joined: 22 Aug 2017, 12:56
URL rewrite help needed
Hello,
I've been trying to get url rewrite to work for few days but I'm new at this so I need some dire help.
I'm trying to force all http traffic to http://mydomain.com/apps/webapp1 to https so I've used the following line from the helicon examples page in the .htaccess file at /webapp1 folder level without success.
RewriteEngine on
RewriteCond %{HTTP:Host} (.*)
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (.*)
RewriteRule .? https://%1%2 [R]
to test the above lines, I've moved the .htaccess from /webapp1 to http://mydomain.com/apps/ and to the root and it works fine at both levels.
I'm not sure why it won't work at the /webapp1 level. I'd appreciate any input that could shed some light on the above issue.
Thank you in advance!
I've been trying to get url rewrite to work for few days but I'm new at this so I need some dire help.
I'm trying to force all http traffic to http://mydomain.com/apps/webapp1 to https so I've used the following line from the helicon examples page in the .htaccess file at /webapp1 folder level without success.
RewriteEngine on
RewriteCond %{HTTP:Host} (.*)
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (.*)
RewriteRule .? https://%1%2 [R]
to test the above lines, I've moved the .htaccess from /webapp1 to http://mydomain.com/apps/ and to the root and it works fine at both levels.
I'm not sure why it won't work at the /webapp1 level. I'd appreciate any input that could shed some light on the above issue.
Thank you in advance!
- heliconnewb
- Posts: 2
- Joined: 22 Aug 2017, 12:56
Re: URL rewrite help needed
figured this out using url rewrite module in IIS at the /webapp1 level instead of using htaccess file.
Re: URL rewrite help needed
I want to do the same thing. To comply with Google's new rules, all pages need to enforce HTTPS.
I have this rule in place.
RewriteCond %{HTTPS} on
RewriteRule ^$ http://www.domain.com/ [R=301,L]
When I change the http to https, I get the following.
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
What do I do please?
I have this rule in place.
RewriteCond %{HTTPS} on
RewriteRule ^$ http://www.domain.com/ [R=301,L]
When I change the http to https, I get the following.
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
What do I do please?
Re: URL rewrite help needed
commenting out that rule resolved my issue. not sure why the rule was there, but problem appears to be resolved.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests