|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hey guys, i redesigned my whole site 6 months ago and since i use google sitemaps it helps me know which files are currently broken. a lot of the folders where i used to keep them in i no longer need. ex:
http://www.sestrims.com/_pp/cadillac/cts.html http://www.sestrims.com/_pp/lexus/ls.html http://www.sestrims.com/_pp/lincoln/towncar.html http://www.sestrims.com/frames/navdodge.htm http://www.sestrims.com/frames/navlexus.htm is there any way i can put a code inside the .htaccess file that will redirect them to my home page if lets say they try to access any file within folders _pp,frames, etc. ive been doing it one by one but its starting to overload already. please advise. thank you |
|
||||
|
Quote:
Code:
# Start the mod_rewrite rules RewriteEngine on # List of redirects, in case some pages were moved Redirect 301 /_pp/cadillac/cts.html http://www.sestrims.com/ Redirect 301 /_pp/lexus/ls.html http://www.sestrims.com/ Redirect 301 /_pp/lincoln/towncar.html http://www.sestrims.com/ Redirect 301 /frames/navdodge.htm http://www.sestrims.com/ Redirect 301 /frames/navlexus.htm http://www.sestrims.com/
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
im sorry but i believe you have misunderstood me. below is the exact contents of my current .htaccess file and i want to shorten it as much as possible.
Options -Indexes Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.sestrims\.com [NC] RewriteRule ^(.*)$ http://www.sestrims.com/$1 [R=301,L] Redirect http://www.sestrims.com/$1 http://www.sestrims.com Redirect /index2.cgi http://www.sestrims.com Redirect /retrieve.cgi http://www.sestrims.com Redirect /$1 http://www.sestrims.com Redirect permanent /flash http://www.sestrims.com Redirect /flash/nav.swf http://www.sestrims.com Redirect /flash/index.swf http://www.sestrims.com Redirect permanent /frames http://www.sestrims.com Redirect /frames/manufacturers.htm http://www.sestrims.com Redirect /frames/navcadillac.htm http://www.sestrims.com Redirect /frames/navchevy.htm http://www.sestrims.com Redirect /frames/navdodge.htm http://www.sestrims.com Redirect /frames/navgmc.htm http://www.sestrims.com Redirect /frames/navjaguar.htm http://www.sestrims.com Redirect /frames/navlexus.htm http://www.sestrims.com Redirect /frames/navmercedes.htm http://www.sestrims.com Redirect /frames/navnissan.htm http://www.sestrims.com Redirect permanent /products http://www.sestrims.com Redirect /products/comingsoon.html http://www.sestrims.com Redirect /products/_mc/mc-107.html http://www.sestrims.com Redirect /products/_pp/lexus/gs.html http://www.sestrims.com Redirect /products/cadillac/escalade.html http://www.sestrims.com Redirect /products/comingsoon.html http://www.sestrims.com Redirect /products/dh/dh505.html http://www.sestrims.com Redirect /products/dodge/charger.html http://www.sestrims.com Redirect /products/dodge/ram.html http://www.sestrims.com Redirect /products/ford/500.html http://www.sestrims.com Redirect /products/ford/fseries.html http://www.sestrims.com Redirect /produtcs/gmc/yukon.html http://www.sestrims.com Redirect /products/gmc/sierralight.html http://www.sestrims.com Redirect /products/lexus/gs.html http://www.sestrims.com Redirect /products/lexus/is.html http://www.sestrims.com Redirect /products/nissan/altima.html http://www.sestrims.com Redirect /products/nissan/armada.html http://www.sestrims.com Redirect /products/nissan/maxima.html http://www.sestrims.com Redirect /v2/news/ev1000.htm http://www.sestrims.com is there any way i redirect any page within the folder to go to index. for instance i tried this but it doesnt work: Redirect /products/ http://www.sestrims.com ....so that if they try to access any page following the /products/ folder will be forwarded to my index. thanks once again |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |