Guest User

Untitled

a guest
Feb 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3. RewriteCond %{HTTP_HOST} ^(www.)?sub.domain.nl$
  4. RewriteCond %{REQUEST_URI} !^/dir1/dir2/
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteCond %{REQUEST_FILENAME} !-d
  7. RewriteRule ^(.*)$ /dir1/dir2/$1
  8. RewriteCond %{HTTP_HOST} ^(www.)?sub.domain.nl$
  9. RewriteRule ^(/)?$ dir1/dir2/index.php [L]
  10. </IfModule>
  11.  
  12. # BEGIN WordPress
  13. <IfModule mod_rewrite.c>
  14. RewriteEngine On
  15. RewriteBase /sub.domain.nl/dir1/dir2/
  16. RewriteRule ^index.php$ - [L]
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19. RewriteRule . /sub.domain.nl/dir1/dir2/index.php [L]
  20. </IfModule>
  21. # END WordPress
Add Comment
Please, Sign In to add comment