Jump to content

index.php rewrite..


Recommended Posts

I have this code in .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(usluge|masine|o-nama|kontakt)?$ ./$1.php [L,QSA]
RewriteRule ^usluge/(.*)$ usluge.php?q=$1 [L,QSA]

It works fine for addresses /usluge, /masine, /o-nama, /kontakt, but now i wonna go to www.example.com i got this error:

Not Found

The requested URL /des-com/.php was not found on this server.

How to fix that?

Thanks..

Link to comment
https://forums.phpfreaks.com/topic/241613-indexphp-rewrite/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.