Home .htaccess link css is not linking
Reply: 1

.htaccess link css is not linking

Elijah Cruz Webservices
1#
Elijah Cruz Webservices Published in 2018-02-13 19:01:03Z

I am new to .htaccess so bear with me.

I am trying to have my URL look like:

http://example.com/login

Using .htaccess it uses:

http://example.com/index.php?url=login

My .htaccess looks like this:

RewriteEngine On
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

The problem with this is that when I try to access http://example.com/asset/style.css it just shows my index.php without being able to use my css. How can I change this to be able to use my css files?

Rubatharisan Thirumathyam
2#
Rubatharisan Thirumathyam Reply to 2018-02-13 19:10:20Z

Try

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php?url=$1 - [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO