redirect after moving blog
-
I moved my wp install from /blog/ to leaving the files in /blog/ but moving the index to / and updating all the files. Things work fine except i now get a 404 when trying to go to some pages
how can i 301 /blog/tag/* to /tag/*
here is what is in my .htaccess currently and not solving the issue.
#Controls eTags Header unset ETag FileETag None #Blocks directory listing access if no index file present. Options All -Indexes ErrorDocument 404 /404.php RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.DOMAIN\.com$ [NC] RewriteRule ^(.*)$ https://DOMAIN.com/$1 [R=301,L] # REDIRECT /folder/index.php to /folder/ RewriteEngine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/ RewriteRule ^(([^/]+/)*)index\.php$ https://DOMAIN.com/$1 [R=301,L] <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘redirect after moving blog’ is closed to new replies.