Re: [us...@httpd] mod_rewrite and location

2010-03-29 Thread Edgar Frank
10/03/29 Henrik Gemal > I use mod_rewrite and in the root of the website I have this > in the .htaccess file: Hi, mixing Location with .htaccess sounds wrong to me, as Location should be processed before URL-to-file mapping, but .htaccess can only be accessed after URL-to-file mapping. Be sure t

Re: [us...@httpd] mod_rewrite and location

2010-03-29 Thread Henrik Gemal
The problem is that if I do: Order deny,allow Deny from all Order deny,allow Allow from all Order deny,allow Deny from all Allow from 127.0.0.1 then calling http://localhost/index.php/program2 would access program2 when he shouldn't

Re: [us...@httpd] mod_rewrite and location

2010-03-29 Thread Igor Cicimov
Your RewriteRule is wrong redirects everything to index.php in the root directory where you dont have access On Mar 29, 2010 8:24 PM, "Henrik Gemal" wrote: I use mod_rewrite and in the root of the website I have this in the .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME

[us...@httpd] mod_rewrite and location

2010-03-29 Thread Henrik Gemal
I use mod_rewrite and in the root of the website I have this in the .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [qsappend,last] My index.php is simple: My URLs are something lik