Force SSL and Permalink redirects

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

 <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?

1 Reply

See if this helps: https://forum.linode.com/viewtopic.php?f=10&t=11725#p66616

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct