regex - mod_rewrite: adding a 'fake folder' to all URLs? -


How do I add duplicate folders to all URLs in Apache 2.4.9?

Example:

  changes to http: //localhost/index.html   

  Http: // localhost / folder /index.html   

? DOCUMENT_ROOT / .htaccess

Keep this code in your file:

  RewriteEngine On RewriteRule ^ /? Folder (/.*)?$/ $ 1 [L, NC]    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -