How Apache automatically hides index.php
巴扎黑
巴扎黑 2017-05-16 17:00:23
0
1
543

The .htaccess file has been set up

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php/ [QSA,PT,L]
</IfModule>

When accessing index.php/xxx, I still access it as usual. It will not become an address like /xxx. If I want index.php/xxx, it will automatically jump to /xxx. How to deal with it?

巴扎黑
巴扎黑

reply all(1)
世界只因有你

DocumentRoot where RewriteBase/index.php is located, put .htaccess here

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?$1 [QSA,PT,L]

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template