I am trying to rewrite a url from a sub-directory of the web root.
http://mysite.com/wiki/index.php/Main_Page
to this (note question mark):
http://mysite.com/wiki/index.php?Main_Page
What I'm doing wrong here? (wiki/.htaccess)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^index\.php/(.*)$ ./index.php?$1 [PT,L,QSA]
These two lines here got it sorted:
RewriteEngine On
RewriteRule ^index\.php/(.*)$ index.php?title=$1 [PT,L,QSA]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With