Advertisement
Guest User

Untitled

a guest
Jan 30th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. .htaccess:
  2. # From www to non-www classicalmusicrookies.com
  3. #RewriteEngine On
  4. #RewriteBase /
  5. #RewriteCond %{HTTP_HOST} ^www.classicalmusicrookies.com$ [NC]
  6. #RewriteRule ^(.*)$ http://classicalmusicrookies.com/$1 [R=301,L]
  7.  
  8. #From www to non-www klassiekemuziek.tv
  9. #RewriteEngine On
  10. #RewriteBase /
  11. #RewriteCond %{HTTP_HOST} ^www.klassiekemuziek.tv$ [NC]
  12. #RewriteRule ^(.*)$ http://klassiekemuziek.tv/$1 [R=301,L]
  13.  
  14. #From www to non-www timkranen.com
  15. #RewriteEngine On
  16. #RewriteBase /
  17. #RewriteCond %{HTTP_HOST} ^www.timkranen.com$ [NC]
  18. #RewriteRule ^(.*)$ http://timkranen.com/ [R=301,L]
  19.  
  20. #From www to non-www toonverbeek.com
  21. RewriteEngine on
  22. RewriteBase /
  23. RewriteCond %{HTTP_HOST} ^www.toonverbeek.com$ [NC]
  24. RewriteRule ^(.*)$ http://toonverbeek.com$1 [R=301,L]
  25.  
  26. <IfModule mod_rewrite.c>
  27. RewriteEngine On
  28. RewriteBase /
  29. RewriteRule ^index\.php$ - [L]
  30. RewriteCond %{REQUEST_FILENAME} !-f
  31. RewriteCond %{REQUEST_FILENAME} !-d
  32. RewriteRule . /index.php [L]
  33. </IfModule>
  34.  
  35. virtual hosts(apache2/sites-available)
  36. <VirtualHost *:80>
  37. DocumentRoot /var/www/classicalmusicrookies.com
  38. ServerName klassiekemuziek.tv
  39. ServerAlias www.klassiekemuziek.tv
  40. </VirtualHost>
  41.  
  42. and
  43.  
  44. <VirtualHost *:80>
  45. DocumentRoot /var/www/timkranen.com
  46. ServerName timkranen.com
  47. ServerAlias www.timkranen.com
  48. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement