Public paste
htaccess
By: rewrite | Date: Dec 2 2009 16:27 | Format: None | Expires: never | Size: 1.44 KB | Hits: 910

  1. RedHat:
  2.  
  3.   -> in der adressleiste steht:
  4.      http://domainname.tld/was/auch/immer/hier/steht/
  5.      http://domainname.tld/das:kann:sogar:ganz:strange:sein/
  6.   -> leitet um auf
  7.      http://domainname.tld/test/index.php
  8.  
  9. Windows:
  10. https://localhost/MyPage/vc.2000/
  11.  
  12.   -> in der adressleiste steht:
  13.      http://localhost/MyPage/vc.2000/
  14.   -> sollte umleiten auf
  15.      http://localhost/MyPage/vc.2000/test/index.php
  16.   -> macht statt dessen gar nichts, sondern zeigt den dir-index
  17.  
  18.   -> in der adressleiste steht:
  19.      http://localhost/MyPage/vc.2000/test/das:kann:sogar:ganz:strange:sein/
  20.   -> leitet um auf
  21.      403
  22.  
  23. verzeichnis-struktur RedHat:
  24.  
  25. homesehrlangerpfad
  26. homesehrlangerpfad.htaccess
  27. homesehrlangerpfadtest
  28. homesehrlangerpfadtestindex.php
  29.  
  30. verzeichnis-struktur WIN:
  31.  
  32. ./MyPage/
  33. ./MyPage/vc.2000/
  34. ./MyPage/vc.2000/.htaccess
  35. ./MyPage/vc.2000/test/
  36. ./MyPage/vc.2000/test/index.php
  37.  
  38.  
  39.  
  40. ========================================================htaccess:begin
  41. SetEnv APPLICATION_ENV dev
  42.  
  43. RewriteEngine On
  44.  
  45. # RedHat:
  46. #RewriteBase /test
  47.  
  48. # WIN:
  49. RewriteBase /MyPage/vc.2000
  50.  
  51. RewriteCond %{REQUEST_FILENAME} -s [OR]
  52. RewriteCond %{REQUEST_FILENAME} -l [OR]
  53. RewriteCond %{REQUEST_FILENAME} -d
  54. RewriteRule ^.*$ - [NC,L]
  55.  
  56. # RedHat:
  57. #RewriteRule ^.*$ /test/index.php [NC,L]
  58.  
  59. # WIN:
  60. RewriteRule ^.*$ /MyPage/vc.2000/test/index.php [NC,L]
  61. ========================================================htaccess:end