Forum Moderators: phranque
GET /Bio/alaska/faq/stock/stock/alaska/journal/eagles/stock/thumbnails-79-Banff-National-Park-photos.html
GET /Bio/copyright/faq/stock/alaska/stock/index-17.html
GET /Bio/alaska/stock/stock/stock/alaska/portfolio/landscapes/stock/thumbnails-17-Small-Mammals-Photos.html RedirectMatch 301 ^/Bio/ http://www.skolaiimages.com/bio/index.html User-Agent: *
Crawl-delay: 30 Out of curiosity, how do I rewrite something like this
website.com/folder/file-name.html%3Cbr%20/%3E50
or similar? I'm seeing something like that on google's webmasters tools .. i deleted it, but I do know it drives some traffic. I tried this but it doesn't work.
# RewriteRule ^folder\/file-name\.html(.*)$ http://www.example.com/folder/file-name.html [R,L]
Didn't work. I then tried leaving the $ off the first part, after the (.*), and it nearly worked, but still tagged some kind of code <br%20/>50 or something similar.
It's not a huge deal, but I am starting to see more of these links from truncated urls, etc and thought it might be possible to resolve them correctly?
<br%20/>50 or something similar
Remember, you don't need to escape directory slashes in mod_rewrite
RewriteRule ^folder/file-name\.html(.*)$ .... And, ahem, you want [R=301,L]
Rewrite ^anwr/$ http://www.example.com/anwr/anwr-rafting-trip.html [R=301,L] And here you must say .+ rather than .* because otherwise you will get into an infinite redirect when there is nothing after the html.
I thought I DID use example.com or 'website.com' .. is there a difference?