使用后,请不要打开index.php
使用后使用后,请不要打开index.php,php,indexing,Php,Indexing,使用后 RewriteRule ^([A-Za-z0-9-]+)/?$ details.php?brandname=$1 在htaccess文件中,将test.com/details.php?brandname=abc更改为test.com/abc 它不会在directoris中直接打开index.php 例如test.com/dir1它显示白色页面,必须键入test.com/dir/index.php才能打开检查此代码可能对您有所帮助 RewriteEngine on RewriteRule
RewriteRule ^([A-Za-z0-9-]+)/?$ details.php?brandname=$1
在htaccess文件中,将test.com/details.php?brandname=abc更改为test.com/abc
它不会在directoris中直接打开index.php
例如
test.com/dir1
它显示白色页面,必须键入test.com/dir/index.php
才能打开检查此代码可能对您有所帮助
RewriteEngine on
RewriteRule ^((?:[a-zA-Z0-9_-]|%20)+)/?$ details.php?brandname=$1
不,我想用它。但是directoris在没有/index.php的情况下无法打开