Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 17, 2015 2:02 pm 
Offline
Senior Newbie

Joined: Sat Oct 04, 2014 7:31 pm
Posts: 9
Hi Folks,

I've got two issues on my site.

1- SSL is installed, but I want to force all users to it.
2- When I change permalinks to domain/post-name from domain/default in WP my pages return an error 'The requested URL /test/ was not found on this server.' and refers to port 80.

My .hta access is here

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
 RewriteCond %{HTTPS} !=on
 RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
 RewriteCond %{SERVER_PORT} ^80$
 RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</IfModule>


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


Additionally, I was reading around and thought that httpd.conf might be related to this, but searching my server could not find the .conf file, is that necessary for the .htaccess?


Top
   
PostPosted: Wed Jun 17, 2015 10:02 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
See if this helps: viewtopic.php?f=10&t=11725#p66616


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group