Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/239.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
Php 重写规则标志和静态字重定向问题_Php_.htaccess - Fatal编程技术网

Php 重写规则标志和静态字重定向问题

Php 重写规则标志和静态字重定向问题,php,.htaccess,Php,.htaccess,当我访问它时,它应该被重定向到account.php 如果我访问它,应该在store.php上重定向它限制现有文件和目录的上一条规则: RewriteEngine on RewriteRule account$ account.php [Nc] RewriteRule (.+)$ store.php [Nc] Options -MultiViews RewriteEngine on RewriteRule account/?$ account.php [NC,L]

当我访问它时,它应该被重定向到account.php


如果我访问它,应该在store.php上重定向它

限制现有文件和目录的上一条规则:

    RewriteEngine on
    RewriteRule account$ account.php [Nc]
    RewriteRule (.+)$ store.php [Nc]
Options -MultiViews
RewriteEngine on

RewriteRule account/?$ account.php [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . store.php [L]