Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 02-19-2007, 02:40 PM
Dave Kovaleski's Avatar
Dave Kovaleski Dave Kovaleski is offline
Real Estate Web Guru
 
Join Date: Jan 2007
Posts: 344
Dave Kovaleski is on a distinguished road
Default 301 redirect

Ok I think I got my redirects working. Except I can't seem to get a redirect working for my index page to just my .com. does this line look right for that redirect?

Redirect 301 /index.html http://www.poconoareamls.com/.

here is the actual file that is currently upload minus the code for the index redirect: I am also hoping that the first bit of this file is for forcing the www. version of the pages, did I do this right?

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^poconoareamls.com [NC]
RewriteRule ^(.*)$ http://www.poconoareamls.com/$1 [L,R=301]
Redirect 301 /300to350.html http://www.poconoareamls.com/poconohomes300kto350k.html.
Redirect 301 /lots.html http://www.poconoareamls.com/poconolots.html.
Redirect 301 /mlssearch.html http://www.poconoareamls.com/poconohomesearch.html.
Redirect 301 /finacialcalculators.html http://www.poconoareamls.com/financialcalculators.html.
Redirect 301 /land10plusacres.html http://www.poconoareamls.com/poconoland10plusacres.html.
Redirect 301 /50to100.html http://www.poconoareamls.com/poconohomes50kto100k.html.
Redirect 301 /350to400.html http://www.poconoareamls.com/poconohomes350kto400k.html.
Redirect 301 /500plus.html http://www.poconoareamls.com/poconohomes500kplus.html.
Redirect 301 /100to150.html http://www.poconoareamls.com/poconohomes100kto150k.html.
Redirect 301 /400to450.html http://www.poconoareamls.com/poconohomes400kto450k.html.
__________________
Dave Kovaleski REALTOR
Pocono Pennsylvania Real Estate Agent
Pocono Real Estate
Pocono Homes
Lake Wallenpaupack Real Estate
Reply With Quote
Old 02-19-2007, 04:44 PM
skipfactor skipfactor is offline
banned
 
Join Date: Jan 2005
Posts: 126
skipfactor is on a distinguished road
Default Re: 301 redirect

Code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/ 
RewriteRule ^(.*)index\.html /$1 [R=301,L]
Reply With Quote
Old 02-19-2007, 05:26 PM
Dave Kovaleski's Avatar
Dave Kovaleski Dave Kovaleski is offline
Real Estate Web Guru
 
Join Date: Jan 2007
Posts: 344
Dave Kovaleski is on a distinguished road
Default Re: 301 redirect

Thanks for the reply, what does that do?
__________________
Dave Kovaleski REALTOR
Pocono Pennsylvania Real Estate Agent
Pocono Real Estate
Pocono Homes
Lake Wallenpaupack Real Estate
Reply With Quote
Old 02-19-2007, 06:15 PM
Dave Kovaleski's Avatar
Dave Kovaleski Dave Kovaleski is offline
Real Estate Web Guru
 
Join Date: Jan 2007
Posts: 344
Dave Kovaleski is on a distinguished road
Default Re: 301 redirect

Ok I slapped that code in and it worked great. So now when a web crawler sees the htaccess file it will make a permanent note that the index file is now just the .com and this should fix the duplicate content i was getting from having both the .com and the index file indexed correct?

Thanks again
__________________
Dave Kovaleski REALTOR
Pocono Pennsylvania Real Estate Agent
Pocono Real Estate
Pocono Homes
Lake Wallenpaupack Real Estate
Reply With Quote
Old 02-20-2007, 08:13 AM
skipfactor skipfactor is offline
banned
 
Join Date: Jan 2005
Posts: 126
skipfactor is on a distinguished road
Default Re: 301 redirect

That is correct. Might take a month or so.
Reply With Quote
Reply


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 On
HTML code is Off



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 06:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.