开发者

Apache Mod Rewrite

开发者 https://www.devze.com 2022-12-15 14:03 出处:网络
In my Apache configuration, I have the following statement: RewriteRule ^/classic(.*) /$1 [nc,l] This will return all statements to http://localhost/classic basic the base htdoc folder (so index.ht

In my Apache configuration, I have the following statement:

RewriteRule ^/classic(.*) /$1 [nc,l]

This will return all statements to http://localhost/classic basic the base htdoc folder (so index.html is used)

I want to be able to enter http://localhost/classic/somefolder and make it go the a specific folder in the htdocs.

How would I go about doing 开发者_JAVA百科this?


RewriteRule ^/classic/somefolder/(.*)$ /elsewhere/$1 [NC,L]
RewriteRule ^/classic/(.*)$ /$1 [NC,L]
0

精彩评论

暂无评论...
验证码 换一张
取 消