Advertisement
OldCode101

subdomain via .htaccess

Mar 11th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ** FILE STRUCTURE **
  2. /
  3. html/ <- Target of primary domain (foo.com) points to
  4. logs/
  5. bar/
  6. html/ <- New Target for sub-domain (drupal.foo.com)
  7. src/
  8.  
  9.  
  10. ** .HTACCESS FILE AT /html **
  11. <Files .htaccess>
  12. order allow,deny
  13. deny from all
  14. </Files>
  15.  
  16. <IfModule mod_rewrite.c>
  17. Options +FollowSymlinks
  18. RewriteEngine On
  19.  
  20. #RewriteBase /
  21. # send bar.foo.com to /local/u1/foo/bar/html
  22. RewriteCond %{HTTP_HOST} ^bar\.foo\.com
  23. RewriteRule ^(.*)$ /local/u1/foo/bar/html/$1 [L]
  24. </IfModule>
  25.  
  26.  
  27. ** ERROR MESSAGE **
  28. [Fri Mar 11 09:31:20 2011] [error] [client xxx.xxx.xxx.xxx] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement