SHARE
TWEET

Untitled

a guest Aug 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2.  
  3.  #If the host is "sub.domain.com"
  4.  RewriteCond %{HTTP_HOST} ^sub.domain.com/folder1/$ [NC]
  5.  #Then rewrite any request to /folder
  6.  RewriteRule ^((?!folder).*)$ folder1/folder2/$1 [NC,L]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top