Answer the question
In order to leave comments, you need to log in
Why doesn't RewriteRule ^(.*)$ index.php?url=$1 [L,QSA] work?
Here is the content of the .htaccess file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
Options +FollowSymlinks
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]
var_dump($_GET)
/var/www/test.site/public_html/doctype/post/index.php:3:
array (size=0)
empty
array (size=1)
'url' => string ''
Options +FollowSymlinks
/var/www/test.site/public_html/doctype/post/index.php:3:
array (size=1)
'url' => string 'controller/action' (length=17)
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?url\=$1 [L,QSA]
Options +FollowSymlinks
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question