Portal Home > Knowledgebase > Articles Database > .htaccess and 301 redirect problem.
.htaccess and 301 redirect problem.
Posted by bigu_c, 05-16-2011, 08:42 AM |
Hello,
I have this problem:
When create .htaccess file on http://htc-pyramid.com with content:
Then I can see it redirect to http://sensation4g.net/ as well.
But if I try to access http://htc-pyramid.com/?p=8 then It redirect to: http://sensation4g.net/?p=8
http://htc-pyramid.com/?p=48 to http://sensation4g.net/?attachment_id=48
What I did wrong?
I want ALL PAGES from htc-pyramid.com will redirect to HOMEPAGE of sensation4g.net
Please help me.
Thanks.
|
Posted by david510, 05-16-2011, 09:10 AM |
Place this rule in the .htaccess file of the document root of htc-pyramid.com
|
Posted by bigu_c, 05-16-2011, 09:29 AM |
Hello,
I edited my .htaccess with your code you share.
But same problem as before: http://htc-pyramid.com/?p=8 doesn't redirect to Sensation4g.net homepage.
Anything wrong?
Please help.
Thanks.
|
Add to Favourites Print this Article
Also Read