Re: [us...@httpd] htaccess format howto question

2010-05-14 Thread Matus UHLAR - fantomas
On 13.05.10 21:08, David Banning wrote: I am wondering how I might do a .htaccess redirect if I want to redirect domain.com/index.php?id=606 to domain.com I have been pouring over many apache how-to's and have not been able to find an answer as yet. I think that RedirectMatch

[us...@httpd] htaccess format howto question

2010-05-13 Thread David Banning
I am wondering how I might do a .htaccess redirect if I want to redirect domain.com/index.php?id=606 to domain.com I have been pouring over many apache how-to's and have not been able to find an answer as yet. - The

Re: [us...@httpd] htaccess format howto question

2010-05-13 Thread Igor Cicimov
ReewriteEngine On RewriteCond %{QUERY_STRING} ^id=606$ RewriteRule ^/index.php$ http://domain.com [R,L] Not tested but should work. Igor On Fri, May 14, 2010 at 11:08 AM, David Banning da...@skytracker.ca wrote: I am wondering how I might do a .htaccess redirect if I want to redirect

Re: [us...@httpd] htaccess format howto question

2010-05-13 Thread Eric Covener
On Thu, May 13, 2010 at 9:42 PM, Igor Cicimov icici...@gmail.com wrote: ReewriteEngine On RewriteCond %{QUERY_STRING} ^id=606$ RewriteRule ^/index.php$ http://domain.com [R,L] Need to drop the leading slash in regex -- Eric Covener cove...@gmail.com

Re: [us...@httpd] htaccess format howto question

2010-05-13 Thread Jason Nunnelley
On 5/13/10 8:08 PM, David Banning wrote: I am wondering how I might do a .htaccess redirect if I want to redirect domain.com/index.php?id=606 to domain.com Same domain (as I assume because domain.com and domain.com are the same). First, you'll need to set up the rewrite basics.