I have moved a blog to a new domain name and set up a global .htaccess to redirect all traffic to the new blog posts.
None of the blog post title names have changed so this should be straight forward. I set up the .htaccess file and it worked fine for about 2 days. Now all of a sudden all posts are being redirected to the main blog page only.
original site is: (removed by request of asker)
new site is: (removed by request of asker)
the blog pages are at (removed by request of asker)... the home page is a page not posts.
When visiting a link from the old site, such as (removed by request of asker) it is redirecting to (removed by request of asker)
If I copy (removed by request of asker) then the correct page loads.
Even visiting the home page of (removed by request of asker) redirects to (removed by request of asker) instead of the home page. so basically EVERYTHING on the old site is redirecting to /blog.html on the new site.
I am at a loss
Here is the .htaccess code Im using to redirect from the old site, and then the .htaccess on the new site.
Old site:
# BEGIN Redirect
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) (removed by request of asker)$1 [R=301,L]
</IfModule>
# END Redirect
New Site:
<files .htaccess>
order allow,deny
deny from all
</files>
ServerSignature Off
<files wp-config.php>
order allow,deny
deny from all
</files>
# 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>
# END WordPress
Daniele Raimondi answers:
You can try to add the <strong>RewriteLog </strong>and <strong>RewriteLogLevel </strong>directives on the old site to output some informations on what's happening during a request to the old site.
for example:
RewriteLog "/usr/local/var/apache/logs/rewrite.log"
RewriteLogLevel 3
A level of 0 disable the logging, while a level of 9 logs everithing.
Hope it can helps.
Dan | gteh comments:
arg! My client decided to set is own redirection in his 1and1 control panel which overwrote my changes I think.
thanks for the suggestion