Can someone PLEASE verify this htacess write for me?
-
Hi All,
I noticed one on my site don’t have an htaccess file and in the process of creating one in particular to force www version of my site.
Anyway, put this rewrite together and wondering if this would work:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com$1 [L,R=301]RedirectMatch 301 ^/blog/(.*)$ https://blog.example.com/$1
# END WordPressDoes this look right? Thanks so much!
- The topic ‘Can someone PLEASE verify this htacess write for me?’ is closed to new replies.