GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   help with mod_rewrite (https://gfy.com/showthread.php?t=962592)

dodger21 04-08-2010 11:32 AM

help with mod_rewrite
 
the following removes question marks from url

RewriteCond %{QUERY_STRING} ^(?!(?:ads|open-id))(.+)$
RewriteCond %{REQUEST_URI} !^server-status?auto$
RewriteRule ^$ /%1? [R=301,L]



first line works. all queries get their ? striped except for those containing ads or open-id .question mark stays for those
second line doesnt. i need http://www.site.com:80/server-status?auto to be completely ignored and left the way it is

where am i going wrong here?

hit me up on icq. $$$ for the solution 237055440

dodger21 04-08-2010 11:34 AM

and unfortunately redirect to a php script isnt an option for this. requirements are this has to be done through rewrites

fatfoo 04-08-2010 11:40 AM

Quote:

Originally Posted by dodger21 (Post 17016863)

I get 404:Page Not Found when clicking this link.

seoguyzzz 04-08-2010 12:23 PM

Quote:

Originally Posted by dodger21 (Post 17016863)
the following removes question marks from url

RewriteCond %{QUERY_STRING} ^(?!(?:ads|open-id))(.+)$
RewriteCond %{REQUEST_URI} !^server-status?auto$
RewriteRule ^$ /%1? [R=301,L]



first line works. all queries get their ? striped except for those containing ads or open-id .question mark stays for those
second line doesnt. i need http://www.site.com:80/server-status?auto to be completely ignored and left the way it is

where am i going wrong here?

hit me up on icq. $$$ for the solution 237055440


i can fix this. hitting u up on icq:thumbsup


All times are GMT -7. The time now is 02:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc