blgo redirection url problems

  adsalamon 15:37 11 Mar 15
Locked

I have 301 redirects setup so 2 other domains point to my main one. i have just added a blog though and this will not redirect.

main domain for blog is www.adriansalamon.co.uk/blog Other domains that won't direct are www.yorkmagician.co.uk/blog and www.adrianthemagician.co.uk/blog

if i type the address without the blog in redirects fine.. Here is my htaccess for redirects

RewriteCond %{HTTP_HOST} ^91.238.160.4 RewriteRule (.*) click here [R=301,L]

RewriteCond %{HTTP_HOST} ^yorkmagician.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.yorkmagician.co.uk$ RewriteRule ^/?$ "http\:\/\/www.adriansalamon.co.uk$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^adrianthemagician.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.adrianthemagician.co.uk$ RewriteRule ^/?$ "http\:\/\/www.adriansalamon.co.uk$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^adriansalamon.co.uk$ RewriteRule ^/?$ "http\:\/\/www.adriansalamon.co.uk$1" [R=301,L]

any help appreciated

Adrian

  adsalamon 15:39 11 Mar 15

missed this bit at the top

RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteRule ^(.*)$ viewpost.php?id=$1 [QSA,L]

This thread is now locked and can not be replied to.

Sniper Elite 4 review: Headshotting Nazis has never felt so good

1995-2015: How technology has changed the world in 20 years

Framestore’s haunting post-WWII title sequence for new BBC series SS-GB

New iOS 11 release date rumours UK | new features coming to Siri, FaceTime, Messages and Video