Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 05-01-05
drivetowin's Avatar
Driving to win
 
Join Date: Aug 2003
Location: If I'm not at home, I'm in hospital
Posts: 7,363
Thanks: 5
Thanked 8 Times in 5 Posts
drivetowin seems to know their stuff
  .htaccess redirect question

OK

Havent asked a question about this for a while as I've mostly got my head around it but before I spend hours trying to get this to work if its not possible........

I used to have a lot of pages in a subdirectory - they no longer exist - can I put a .htaccess file either in that directory or in the root directory which will point anyone trying to access one of those pages to a particular webpage - essentially I want to tell visitors that that range of products is no longer available but still let them view the rest of the site rather than them just get a 404 error
__________________
Never argue with idiots. They just drag you down to their level and then beat you with their experience.

If ignorance is bliss then some of the people I know must be orgasmic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-01-05
Keith's Avatar
Moderator
 
Join Date: Aug 2003
Location: Richmond North Yorkshire
Posts: 2,116
Thanks: 19
Thanked 5 Times in 4 Posts
Keith seems to know their stuff
this thread should sort you out http://www.webmasterworld.com/forum3/14412.htm
__________________
Keith
My Blog general ramblings. Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-01-05
Elaine's Avatar
Registered User
 
Join Date: Aug 2003
Location: Redcar Cleveland North of Leeds
Posts: 2,204
Thanks: 15
Thanked 15 Times in 10 Posts
Elaine seems to know their stuff
if you want to redirect individual pages its

permanent redirect /oldpage.htm http://www.newpage.htm



i'm sure there must be variations to redirect file to file as well - but didnt get there far

cheers
__________________
Elaine - Children's Rooms and Allkids
email: elaine at allkids.co.uk
kev @ childrens-rooms.co.uk
Tel: 01287 644544
Well Behaved Women Rarely Make History
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-01-05
Frostie's Avatar
Moderator
 
Join Date: Aug 2003
Location: Wirral
Posts: 3,012
Thanks: 7
Thanked 13 Times in 6 Posts
Frostie is on a distinguished roadFrostie is on a distinguished road
  Yes

As mentioned, use redirects - similar to when you change from html to php, or move files to a new directory.

As an example, I have in mine;
redirect 301 /about.html http://www.mysite.co.uk/about_us.php

But you could also have for example;
redirect 301 /category.php?cat=1 http://www.mysite.co.uk/no_longer_exists.php
redirect 301 /category.php?cat=5 http://www.mysite.co.uk/no_longer_exists.php
redirect 301 /category.php?cat=7 http://www.mysite.co.uk/no_longer_exists.php

etc.

Oh, and this .htaccess file sites in my root.
__________________
Affiliate Blog | Eco Friendly | Discount Codes - Exclusive codes = Inclusion in newsletter to 26,000 recipients
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7