Guest User

Untitled

a guest
Jan 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. sub.mydomain.com/cake
  2.  
  3. sub.mydomain.com
  4.  
  5. <VirtualHost *:80>
  6. DocumentRoot "C:/xampp/htdocs/cake/"
  7. ServerName sub.mydomain.com
  8. <Directory "C:/xampp/htdocs/cake/">
  9. Options Indexes FollowSymLinks
  10. AllowOverride All
  11. Require all granted
  12. </Directory>
  13. </VirtualHost>
  14.  
  15. <?php
  16. if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
  17. $uri = 'https://';
  18. } else {
  19. $uri = 'http://';
  20. }
  21. $uri .= $_SERVER['HTTP_HOST'];
  22. header('Location: '.$uri.'/treesid/');
  23. exit;
  24. ?>
Add Comment
Please, Sign In to add comment