Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1.  
  2. # BEGIN WordPress
  3. RewriteEngine On
  4. RewriteBase /
  5.  
  6. RewriteCond %{SERVER_PORT} 80
  7. RewriteCond %{HTTP_HOST} ^(www\.)?homehotel\.com [NC]
  8. RewriteRule ^(.*)$ https://www.homehotel.com/$1 [L,R=301,NC]
  9.  
  10.  
  11. #RewriteCond %{HTTP_HOST} ^homehotel.com [NC]
  12. #RewriteRule ^(.*)$ https://www.homehotel.com/$1 [L,R=301,NC]
  13.  
  14.  
  15. RewriteRule ^index\.php$ - [L]
  16.  
  17. # add a trailing slash to /wp-admin
  18. RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  19.  
  20. RewriteCond %{REQUEST_FILENAME} -f [OR]
  21. RewriteCond %{REQUEST_FILENAME} -d
  22. RewriteRule ^ - [L]
  23. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  24. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  25. RewriteRule . index.php [L]
  26.  
  27.  
  28. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement