General Community > HTML/CSS
301 Redirect .htacces
sikkens1997:
Hello, I am moving my domain to another website. This will include that some pages will stay the same, there will be some new pages, and there will be pages that are gonna be removed.
Do I need to make a 301 redirect for this so my SEO does not get any lower??
I don't really understand a 301 Redirect, so please can anyone explain to me if I need this? And if I will need this, how will I do it?
sikkens1997:
Bump :-\
sikkens1997:
Anyone? :o
floridaflatlander:
I think you're changing web site names so you would put your 301 redirects on the old domain name.
in a file called .htaccess
I don't know that much about it but this but this is what I have used several times and it worked well. It goes on the same level as myoldwebsite.com
SetEnv PHPRC /services/webpages/c/e/myoldwebsite.com/php5.ini
# below added 2-25-11 <- I put the date here just to remind me when I did it. You use the # symbol for comment lines
# NOTE the space between .html and http://......
Redirect 301 /file.html http://www.mynewwebsite.com/boats.php
Redirect 301 /file.html http://www.mynewwebsite.com/fishing.php
sikkens1997:
--- Quote from: floridaflatlander on May 11, 2011, 10:28:54 AM ---I think you're changing web site names so you would put your 301 redirects on the old domain name.
in a file called .htaccess
I don't know that much about it but this but this is what I have used several times and it worked well. It goes on the same level as myoldwebsite.com
SetEnv PHPRC /services/webpages/c/e/myoldwebsite.com/php5.ini
# below added 2-25-11 <- I put the date here just to remind me when I did it. You use the # symbol for comment lines
# NOTE the space between .html and http://......
Redirect 301 /file.html http://www.mynewwebsite.com/boats.php
Redirect 301 /file.html http://www.mynewwebsite.com/fishing.php
--- End quote ---
Can you explain me please? I don't understand what you did there.
I don't understand this part:
SetEnv PHPRC /services/webpages/c/e/myoldwebsite.com/php5.ini
What will I put in there? Or is that code already 100% finished?
Navigation
[0] Message Index
[#] Next page
Go to full version