Jump to content

RewriteUrl does not work


Lumio

Recommended Posts

Hi

My problem is, that I don't want to allow to overwrite existing files

I solved that with RewriteCond %{REQUEST_FILENAME}\.* -f

But now also RewriteRule does not work. My .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME}\.* -f 
RewriteRule ^(.*)$ index.php
RewriteRule ^([\w\d]+)/([\w]+)$ index.php?file=$1&action=$2

When I try to open mydomain.com/test/rewrite (does not exist) it does not work. Why?

 

greetings

Link to comment
https://forums.phpfreaks.com/topic/81559-rewriteurl-does-not-work/
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.