Answer the question
In order to leave comments, you need to log in
How to fix regex in .htaccess?
WikiMedia system, it is necessary that requests come to index.php except css.
Now there is an example, but it doesn't work (Internal Server Error):
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([^css]*)$ index.php/$1 [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
I found a solution, it seems to work as it should.
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule ^([^css]*)$ index.php/$1 [L]
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(skins|stylesheets|images|config)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index|load).php
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question