View Single Post
  #3  
Old 04-24-2017, 07:14 PM
Keith A's Avatar
Keith A Keith A is offline
Administrator
 
Join Date: Dec 2003
Location: Space Coast of FL
Posts: 18,102
Thanks so much for the reply!!! The other thing that I want to do is redirect www.thepacelinet.net to forums.thepaceline.net.

Here is my current .htaccess...

Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^www\.thepaceline\.net
RewriteRule (.*) http://forums\.thepaceline\.net/$1 [R=301,L]
And here's what our host company suggested I use...

Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.thepaceline.net/$1 [R,L]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^www\.thepaceline\.net
RewriteRule (.*) https://forums\.thepaceline\.net/$1 [R=301,L]
order allow,deny
When I use the latter, I run into a problem of when I type in forums.thepaceline.net, it tries to redirect this to https://forums.thepaceline.net/forums. I don't know where the extra "forums" is being appended.

For now, I went back to the original .htaccess settings and you can access the site from both http and https. When I used the new .httaccess file, I can see that not many users can get to the forum.

Do you see something wrong in the modified .htaccess file that would cause this problem?

I'll have to check our host company regarding the Apache host config modifications.
__________________
My '96 CSi & compact CSi
The Paceline . . . Enjoy the ride.
Reply With Quote