Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
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 |
|
|||
|
Code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html /$1 [R=301,L]
|
|
||||
|
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 |
|
||||
|
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 |
|
|||
|
That is correct. Might take a month or so.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|