Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 1.67 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. htaccess, one line does not work
  2. RewriteEngine On
  3. RewriteBase /
  4.  
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteCond %{REQUEST_URI} !..+$
  7. RewriteCond %{REQUEST_URI} !/$
  8.  
  9. RewriteRule ^([^/]*)/$ /music/index.php?id=$1 [NC,L,QSA]
  10. RewriteRule ^([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2 [NC,L,QSA]
  11. RewriteRule ^([^/]*)/([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2&tid=$3 [NC,L,QSA]
  12. RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2&tid=$3&fid=$4 [NC,L,QSA]
  13. RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2&tid=$3&fid=$4&fiid=$5 [NC,L,QSA]
  14. RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2&tid=$3&fid=$4&fiid=$5&siid=$6 [NC,L,QSA]
  15. RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2&tid=$3&fid=$4&fiid=$5&siid=$6&seid=$7 [NC,L,QSA]
  16. RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/$ /music/index.php?id=$1&sid=$2&tid=$3&fid=$4&fiid=$5&siid=$6&seid=$7&eiid=$8 [NC,L,QSA]
  17.        
  18. <VirtualHost *:80>
  19.     ServerAdmin wouter1994_67@hotmail.com
  20.     ServerName sites
  21.     DocumentRoot /var/www/sites
  22.     <Directory /var/www/sites>
  23.         Options Indexes FollowSymLinks MultiViews
  24.         AllowOverride All
  25.         Order allow,deny
  26.         allow from all
  27.     </Directory>
  28.  
  29.     ErrorLog ${APACHE_LOG_DIR}/error.log
  30.     LogLevel warn
  31.     CustomLog ${APACHE_LOG_DIR}/access.log combined
  32.  
  33. </VirtualHost>
  34.        
  35. RewriteCond %{REQUEST_FILENAME} !-f
  36. RewriteCond %{REQUEST_URI} !..+$
  37. RewriteCond %{REQUEST_URI} !/$
  38.        
  39. RewriteRule ^([^/]*)/$ /music/index.php?id=$1 [NC,L,QSA]
  40.        
  41. RewriteCond %{REQUEST_URI} !^..+$
  42. RewriteCond %{REQUEST_URI} !^/$