Home .htaccess file rewrite
Reply: 0

.htaccess file rewrite

user4799
1#
user4799 Published in September 19, 2018, 3:18 am

I've got a problem with rewriting urls. The following is happening:


    http://www.mysite.nl/scores
    http://www.mysite.nl/registreren
    http://www.mysite.nl/login

these urls will be redirected to index.php?route=scores etc

This is all working very well. But now i've got template files in a subdirectory like images and stylesheet. These files are in

  • template/css/style.css
  • images/images.png etc

now all those files are also beeïng redirected to index.php?route.
I'm aware of the leading slash and all links to the files are absolute paths.

The following code is beeïng used in the .htaccess file.


    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)/?$ index.php?route=$1 [L,QSA]

share|improve this question
  • For testing comment out your RewriteRule above and then try to click: your css – anubhava Apr 11 '12 at 13:14

1 Answer 1

active oldest votes
up vote 2 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.31964 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO