mercredi 29 avril 2015

.htaccess file does'nt work properly

I have create the .htaccess in following way

 RewriteEngine on
RewriteBase /school1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?path=$1 [L,QSA]

I mean that when user hit the 'school1/schools/schools' they will get the contents of 'school1/index.php?path=schools/schools' It is working properly but css js and images requests are going to the school1/schools/[js|css|img]/... as per directory instead of school1/[js|css|img]

I m not getting why they are getting the schools part from the url. if i m fire http://ift.tt/1JRkDnd it renders properly but when i fire http://ift.tt/1FwvFiu

Please help me I have wasted my long time for this problem. If you want any extra info please comment it.

Aucun commentaire:

Enregistrer un commentaire