BelgianITGuy
asked on
Problems with rewrite rules in htaccess
I have a problem with a .htaccess file.
I have a domainname (test1234.com for this example), and if visitors go to http://www.test1234.com everything works fine.
If they go to http://www.test1234.com/files/blablabla/nonexistingsfile.pdf they are redirected to the index.php file, but the path is not changed. So any files used in index.php which are referenced by a relative path "./cssfiles/main.css" for example are not found. Images which are included with "./graphics/logos/mylogo.p ng" are not shown.
I've attached my htaccess file. Anyone have any idea how to get this right?
htaccess_for_expertsexchange.txt
I have a domainname (test1234.com for this example), and if visitors go to http://www.test1234.com everything works fine.
If they go to http://www.test1234.com/files/blablabla/nonexistingsfile.pdf they are redirected to the index.php file, but the path is not changed. So any files used in index.php which are referenced by a relative path "./cssfiles/main.css" for example are not found. Images which are included with "./graphics/logos/mylogo.p
I've attached my htaccess file. Anyone have any idea how to get this right?
htaccess_for_expertsexchange.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot for the fast (and correct) response.
ASKER
that was absolutely correct! Thanks a lot, you've saved me a lot of time.