I have a problem with my rewriterule in my .htaccess
To begin, i have a wlidcard on my website (*.site.com)
Here is the path of my website :
/home/www/static/
/home/www/home/
/home/www/.htaccess
So i made a .htaccess at the root of my website with :
RewriteCond %{HTTP_HOST} static.site.com [NC]
RewriteRule !^static/ static%{REQUEST_URI}
RewriteCond %{HTTP_HOST} www.site.com [NC]
RewriteRule !^home/ home%{REQUEST_URI}
These redirects run pretty good but when i want to go to for example :
http://www.site.com/img
There’s a problem, it’s redirecting me in http://www.site.com/home/img/
But when i type http://www.site.com/img/ with the final backslash everything is ok.
Thanks for replies 🙂
Solved :