Trying to do a 301 redirect in .htaccess for my wordpress blog in a sub-directoy
-
Hello,
I am trying to do a 301 redirect in .htaccess for my wordpress sitemap.xml. My blog is located in a separate folder (directory) within my primary domain. Any suggestions on what changes to make in my wordpress .htaccess file to do a redirect for url’s. I am primarily concerned with doing a redirect for https:// reynoldspest.com/ reynoldsblog/sitemap.xml to https:// https://www.reynoldspest.com/ reynoldsblog/sitemap.xml. This is what my current .htaccess file looks like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /reynoldsblog/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /reynoldsblog/index.php [L]
</IfModule># END WordPress
- The topic ‘Trying to do a 301 redirect in .htaccess for my wordpress blog in a sub-directoy’ is closed to new replies.