[EMAIL PROTECTED] mod_rewrite - query string appended to URL?

2008-07-18 Thread Philip Pemberton
Hi, I'm trying to track down an issue with a set of rewrite rules that I'm using to convert links from www.mysite.com/dir/page (and /dir/page/) format into a query-string for a script. To give a better example: www.example.com/projects/foo=> /index.php?projects/foo www.example.com/projects/

[EMAIL PROTECTED] Re: Extra garbage in URL when using mod_rewrite with redirects

2006-09-18 Thread Philip Pemberton
Joshua Slive wrote: Don't mix mod_rewrite and mod_alias. In place of those RedirectPermanent, use RewriteRule ^forum http://forum.philpem.me.uk [R=permanent,L] etc... That sorted it - thanks. Now the only problem is I have a pair of RewriteCond commands for each redirect, and all of them ne

[EMAIL PROTECTED] Extra garbage in URL when using mod_rewrite with redirects

2006-09-18 Thread Philip Pemberton
Hi, I have the following rewrite rules in my site's .htaccess: --- begin cut RewriteEngine On # Only rewrite URLs on the primary domain, not subdomains RewriteCond %{HTTP_HOST} ^www\.philpem\.me\.uk$ [OR] RewriteCond %{HTTP_HOST} ^philpem\.me\.uk$ # This makes sure AWStats can get through R