Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htaccess rewrite

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]
like image 502
Keyo Avatar asked Jul 20 '26 20:07

Keyo


1 Answers

These two lines here got it sorted:

RewriteEngine On
RewriteRule ^index\.php/(.*)$ index.php?title=$1 [PT,L,QSA]
like image 111
Keyo Avatar answered Jul 22 '26 14:07

Keyo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!