Jump to content
Sign in to follow this  
TCH-Andy

Htaccess

Recommended Posts

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 B)

 

I removed it again fairly quickly :lol:

 

where am I going wrong?

 

Andy

Share this post


Link to post
Share on other sites

>redirect 301 /creativity/techniques/reverse.htm  http://www.yourURL.com/creativity/techniques/prob-reverse.htm

 

:lol:

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I'm having some trouble redirecting some of my pages.. :D

 

redirect 301 /tubes/index.html  http://www.dddezigns.com/amember

redirect 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!!*

Share this post


Link to post
Share on other sites

I was going to say "it looks good to me" :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...