Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
.htaccess 部分URL的htaccess重写规则_.htaccess - Fatal编程技术网

.htaccess 部分URL的htaccess重写规则

.htaccess 部分URL的htaccess重写规则,.htaccess,.htaccess,我尝试从更改访问权限 http://www.mydomainname.com/main/something/something 到 我想替换/main/to/store/ 您能帮我解决这个问题吗?在root.htaccess中使用此规则: RedirectMatch 301 ^/main(/.*)?$ /store$1 它的作品,但有时url会像。。。。到 RedirectMatch 301 ^/main(/.*)?$ /store$1

我尝试从更改访问权限

http://www.mydomainname.com/main/something/something

我想替换/main/to/store/


您能帮我解决这个问题吗?

在root.htaccess中使用此规则:

RedirectMatch 301 ^/main(/.*)?$ /store$1 

它的作品,但有时url会像。。。。到
RedirectMatch 301 ^/main(/.*)?$ /store$1