TCH-Andy Posted May 18, 2003 Posted May 18, 2003 Hi, I have a page that has changed it's name from reverse.htm to prob-reverse.htm. I just opened the .htaccess file in my public_html directory (which was empty) and added the line; Redirect permanent /creativity/techniques/reverse.htm /creativity/techniques/prob-reverse.htm unfortunately this seems to have no effect other than stop the whole site working I removed it again fairly quickly where am I going wrong? Andy Quote
SEO Posted May 18, 2003 Posted May 18, 2003 >redirect 301 /creativity/techniques/reverse.htm http://www.yourURL.com/creativity/techniques/prob-reverse.htm Quote
SEO Posted May 20, 2003 Posted May 20, 2003 You are welcome. I should have added some comments for others. A 301 redirect is a permanent redirect, meaning you are telling anyone (i.e. a spider) that a particular page is permanently moved to another particular page. This results in a 'permanent' change in any index. This is actually the best way to make a redirect on an existing page. Remember that pages are indexed. If you change the name of a page and not do a redirect, then you will loose that indexing. Where if you do a 301 redirect, the old page's indexing will be credited to the new page. The correct syntax is as described above. Not including the 'http://' to the first part is very important. Just put the path from the top level of your site to the page being redirected. The new page requires the complete address (e.g. http://www.ASite.com/newpage.html). This is placed on a single line in your .htaccess file. Note: always upload your .htaccess in ASCII format. Quote
cmuskett Posted July 1, 2003 Posted July 1, 2003 I'm having some trouble redirecting some of my pages.. redirect 301 /tubes/index.html http://www.dddezigns.com/amemberredirect 301 /pspgradients/index.html http://www.dddezigns.com/amember redirect 301 /pspshapes/index.html http://www.dddezigns.com/amember redirect 301 /blinkies/index.html http://www.dddezigns.com/amember redirect 301 /brushes/index.html http://www.dddezigns.com/amember redirect 301 /pspshapes/index.html http://www.dddezigns.com/amember redirect 301 /quilts/index.html http://www.dddezigns.com/amember redirect 301 /tiles/index.html http://www.dddezigns.com/amember I get the 404 error page on all of these when I type them in in the browser What am I doing wrong.. I saved and uploaded the .htacess file.. but it's not working.. *note to self... stop moving things around!!* Quote
cmuskett Posted July 2, 2003 Posted July 2, 2003 Never mind... It's working now.. *delayed reaction?* LOL Quote
TCH-JimE Posted July 2, 2003 Posted July 2, 2003 Hi, What about subdomains, can you redirect them? E.g. subdomain1.mywebsite.com no longer exists, but I still have mywebsite.com/subdomain1 is that possible? Jim Quote
TCH-JimE Posted July 2, 2003 Posted July 2, 2003 And another thing, how long do you have to keep the 301 there for? Jim Quote
SEO Posted July 8, 2003 Posted July 8, 2003 Sorry Jim... was away. Yes, subdomains can redirect. You can edit the subdomain1's .htaccess file with: >redirect 301 / http://www.mywebsite.com/subdomain1/ And another thing, how long do you have to keep the 301 there for? That is a tougher answer... depends. For the search engines, it would be for only one update (typically one month). If you have stubborn pages referencing a link to those pages/domains, then forever. Quote
TCH-JimE Posted July 8, 2003 Posted July 8, 2003 Hi, If i Delete the subdomain but keep the folder, what would you then suggest? Jim Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.