htaccess problem redirect to main page
-
i just moved my blog to another host. on my other host i had a flash website as my main site and wordpress blog in directory. I decided to change my flash website to a wordpress blog. The reason i changed is that i now used php language and before i was using asp for flash and php for blog and i was on windows server. NOw im on linux server. before my main page was http://www.onlypencil.com/intro.htm and now i want to redirect to http://www.onlypencil.com
I created a htaccess file but it seems to be taking intro as a search query because when i enter http://www.onlypencil.com/intro.htm it loads my blog but it says that it was able to find anything with ‘intro’
RewriteEngine on RewriteRule ^/intro.htm$ /http://www.onlypencil.com$1 [R=301,L]i also tried using redirect 301 which redirected to my blogs main page but it added the old path to the new path which looked like this
http://www.onlypencil.com/?q=/onlypencil.com/intro.phpim sure it should that it should be a simple htaccess file but im not sure why im getting these results
The topic ‘htaccess problem redirect to main page’ is closed to new replies.