richardk wrote:Just for the /sarasa directory?
If not, will it always need to redirect to /sarasa/sarasa.html, the current directories sarasa.html file or a different file for each directory?
Try the following in /sarasa
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule . /sarasa/sarasa.html [R=301,L]
Thanks a lot...
Let me explain what I'm trying to do. I have many sites that link to my site, this sites sometimes link to incorrect pages, for example:
www.sites.com/sarasa/onepage.html and maybe onepage.html doesn't exist so I want to redirect in a 301 way to
www.site.com/sarasa/sarasa.html. I that way I don't loose pr...
For other case I'll use the custom 404 page...
this script cover that? if not could you please, help again?
thanks a lot,