So I have this hatcess mod rewrite:
Options +FollowSymlinks
Options -MultiViews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.mysite.com
RewriteRule (.*) http://mysite.com/$1 [R=301,L]
RewriteRule ^/(.*)$ find.php?q=$1 [NC]
RewriteRule ^/(.*)/([0-9])$ find.php?q=$1&psl=$2 [NC]
RewriteRule ^/(.*)/(.*)-links$ find.php?q=$1&hostas=$2 [NC]
RewriteRule ^/(.*)/(.*)-([0-9]+)$ details.php?id=$3 [NC]
The problem is it works perfectly on one of my domains, and it gives 404 error on other domain hosted on same server (hostgator) but in other directory. The needed files find.php and detals.php do exist in both directories. any suggestions why it doesnt work?
You must define this folder as the base for
mod-rewritein your other folder :