blgo redirection url problems

  adsalamon 15:37 11 Mar 2015
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 2015

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.

Elsewhere on IDG sites

Best phone camera 2017

Stunning new film posters by Hattie Stewart, Joe Cruz & more

iPad Pro 10.5in (2017) review

28 astuces pour profiter au mieux de votre iPhone