I need to redirect everything to a new domain. I want every page and directory on the old domain to point to my new index page. olddomain.com olddomain.com/blabla/ olddomain.com/blabla.html TO newdomain.com htaccess nerds? plz suggest me.
Find me a thread with an htaccess example and I'll give you $1 The only ones I can find redirect the folder/filename as well (e.g olddomain.com/bla.html > newdomain.com/bla.html). This isn't what I want to do. I want to redirect everything on the old domain to my new domain's index page.
Try using this one 301 redirect rule in a .htaccess file on old site. redirect 301 / http://www. new_site. com/ the "/" represents everything in your old web directory and "newsite.com" without the spaces is the site where you need the redirect to go. Boulder
Thanks Boulder, but your example still carries the directory/page with it to the new domain. e.g olddomain.com/blabla/ is going to newdomain.com/blabla/ I want everything to go to newdomain.com and NOT redirect any pages or directories from the old one. I hope I'm making sense
Did you try it like this? redirect 301 / http:// www . new_site . com/index.html Or like this? redirect 301 / http:// www . new_site . com
I tried both. using index.html I end up with http://www.oldsite.com/blablabla/ goes to http://www.newsite.com/index.htmlblablabla/
SOLVED! RewriteRule (.*) [url]http://www.newdomain.com/[/url] [R=301,L] Code (markup): This is working. If anyone has a better suggestion, then I'm all ears. +rep for Boulder for contributing
look at this http://forums.digitalpoint.com/showthread.php?t=1033073&highlight=redirect+301 http://forums.digitalpoint.com/showthread.php?t=1029375&highlight=redirect+301+nimhost http://forums.digitalpoint.com/showthread.php?t=979496&highlight=redirect+301+nimhost http://forums.digitalpoint.com/showthread.php?t=980589&highlight=redirect+301+nimhost want to say there is no such thread ? at least 4 thread i'm pasting and i found more about redirect 301 you lazy
this one same like this redirect 301 / http:// www.new_site.com/ the one that boulder gave you it will redirect everything on your old site to your new site so even search engine will change the PR too which you had got for your old site to your new site redirect 301 means you completely remove your old site to your new site