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 /index.php(?.*) /

could do that. While rewrites may wor, I prefer easier solutions.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Chernobyl was an Windows 95 beta test site.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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 official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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

 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 official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org




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

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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.

RewriteEngine On
RewriteBase /

Then, the specific rule.

RewriteRule ^$ http://www.domain.com [R,L]

This is what you'd do if it's a different domain from any and all URLs 
at that website. Just for example.


RewriteRule ^/index.php?id=606 / [R,L]

Is going to look for index.php on that domain.

This may redirect the URL to where you're trying to get.

There's other folks here that do better with the regular expressions and 
.htaccess stuff than me. Maybe this will get the party started.


--

Jason A. Nunnelley
+1 2562971652

http://www.google.com/profiles/imjasonn

[Member Tekany, LLC]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org