Trying to amend a .htaccess file
-
Hi All
First post here so not sure if I am at the right place or even the right forum. I have been asked to set up a WordPress blog which I have done using Apache and PHP
I am trying to redirect the website so that when someone types in websitename.co.uk it is directed to https://www.websitename.co.uk
However the htaccess file that has been generated does not seem to allow this.
The code is
# BEGIN WordPress
RewriteEngine OnRewriteCond %{HTTP_HOST} ^websitename.co.uk$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.websitename.co.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/blog/
RewriteRule ^(.*)$ /blog/ [L]# END WordPress
I really am not that good at php so where am I going wrong?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Trying to amend a .htaccess file’ is closed to new replies.