Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用后,请不要打开index.php_Php_Indexing - Fatal编程技术网

使用后,请不要打开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的情况下无法打开