[EMAIL PROTECTED] Rewrite ?

2008-06-09 Thread Emil Edeholt
Hi! I want url:s like site.com/page/subpage/some=data and I also need urls like site.com/foo/bar/?some=data to function on my site. The first kind works fine. But I can't get the question mark-kind to work. This works fine for case 1: RewriteRule ^([a-z]*[/][a-z]*)[/]?([a-z0-9=&])$ /main_scr

[EMAIL PROTECTED] Infinite loop of redirects

2008-05-06 Thread Emil Edeholt
Hi! I'm trying to change my url:s from site.com/index.php?foo=bar to site.com/bar. I both have a rewriterule with a 301 redirect so google, etc. won't lose my old links. And an (I think it's called) internal rewriterule that sends my site.com/bar url:s to the php script. The problem is when I

[EMAIL PROTECTED] RewriteCond and Rule

2008-04-22 Thread Emil Edeholt
ndex.php redirect to /foo RewriteCond %{REQUEST_URI} index\.php RewriteCond %{QUERY_STRING} page=([a-z_]*) RewriteRule ^index.php$ /base/path/%1? [R=301,L] Any ideas? -- Hälsningar Emil Edeholt Karlsson & Novak Medical AB Telefon 090-154830 Mobil 070-3758222

[EMAIL PROTECTED] FilesMatch/Files problem

2007-01-08 Thread Emil Edeholt
Hi, The pages on my site is accessed via index.php?page=foo where foo is the file. All pages that starts with admin_ should require a password. I've tried to do this: and this But neither seems to work. If I write I can't access any page on my site so the rest of the config seems fin

[EMAIL PROTECTED] .htaccess not enabled?

2007-01-07 Thread Emil Edeholt
Hi, I'm new on this list so sorry if I'm OT or something. I'm having trouble getting .htaccess files to function on my server. I'm trying to require a password to view a certain directory with this .htaccess file: AuthUserFile /full/path/to/.htpasswd AuthGroupFile /dev/null AuthName "Passwor