Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

suthra
Joined: Mar 25, 2004
# Posts: 37

View the profile for suthra Send suthra a private message

Posted: 2006-Mar-14 09:15
Edit Message Delete Message Reply to this message

Hi guyz,
We had a site that had a content section.,
site.com/content which had several pages, now we found a bug in the script and have stopped the section and deleted the old pages.

Now how do i do a 301 redirect for all the old pages to site.com/content ?. Google sends several visitors to the old pages which now do not exist.,

Pls help smile

Sarathy.s



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1832

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-14 11:15
Edit Message Delete Message Reply to this message

Unless you have them organized in a separate directory, you might have to write individual directives for each page:


Code: [copy]








g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465

View the profile for g1smd Send g1smd a private message

Posted: 2006-Mar-14 20:17
Edit Message Delete Message Reply to this message

If you want all the accesses to the "gone" pages to route to just one particular page of the site, a simple rewrite (using the .htaccess file) should do the trick:

RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^content/(.*)$
www.domain.com/the.page.html [R=301,L]
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^content/(.*)$
www.domain.com/the.page.html [R=301,L]


Do you want the www.domain.com/the.page.html page itself to be indexed? If not, then make sure it contains a <meta name="robots" content="noindex"> meta tag.



suthra
Joined: Mar 25, 2004
# Posts: 37

View the profile for suthra Send suthra a private message

Posted: 2006-Mar-15 05:17
Edit Message Delete Message Reply to this message

WOw thatz what i needed. Thanks for the help., g1smd and Prowler smile



You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions