View Single Post
  #2  
Old 12th February 2011, 21:14
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 46
Thanks: 2
Thanked 3 Times in 3 Posts
Default

Ok, I solved it with this .htaccess file:
Code:
Options +FollowSymlinks
RewriteEngine on

RewriteBase /repertoire_hard/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/([^/]*)\.php$ script.php?var1=$1&var2=$2 [L]

RewriteBase /repertoire_hard/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^([^/]*)\.php$ script2.php?var=$1 [L]
When trying to make them work, use [R] to see where your redirects point.
Reply With Quote