Remove index.php from url by htaccess

前端 未结 4 1234
时光取名叫无心
时光取名叫无心 2020-12-22 12:31

Im developing a php frame work and I am new to .htaccess rules. So I need to redirect url using .htaccess. Url is

http://localhost/rinocabs/index.php?/Galar         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-22 12:38

    Please try the following code. It's working properly.

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L]
    

提交回复
热议问题