Advertisement
Guest User

htaccess

a guest
May 29th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3.  
  4. # Forum redirect rule
  5. RewriteCond %{HTTP_HOST} forum.localhost
  6. RewriteCond %{REQUEST_URI} !^/forum/
  7. RewriteRule ^(.*)$ /forum/$1 [L]
  8.  
  9. # Wordpress redirect rule
  10. RewriteCond %{HTTP_HOST} 16bap.localhost
  11. RewriteCond %{REQUEST_URI} !^/16bap/
  12. RewriteRule ^(.*)$ /16bap/$1 [L]
  13.  
  14. # Wordpress custom permalinks rule
  15. RewriteBase /16bap/
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. RewriteRule 16bap.localhost /16bap/index.php [L]
  19. </IfModule>
  20.  
  21. # Replace localhost with domain
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement