Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.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
如何让apache重写此url?_Apache_Mod Rewrite - Fatal编程技术网

如何让apache重写此url?

如何让apache重写此url?,apache,mod-rewrite,Apache,Mod Rewrite,进入 或 因为我认为你想改写另一个方向: www.mysite.com/www.hello.com www.mysite.com/directory1/directory2/something/www.hello.com www.mysite.com/www.hello.com RewriteRule ^www\.[^/]+$ directory1/directory2/cgi-bin/something.cgi/http/$0

进入


因为我认为你想改写另一个方向:

www.mysite.com/www.hello.com
www.mysite.com/directory1/directory2/something/www.hello.com
www.mysite.com/www.hello.com
RewriteRule ^www\.[^/]+$ directory1/directory2/cgi-bin/something.cgi/http/$0