help with mod_rewrite

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodger21
    Confirmed User
    • Jan 2003
    • 2680

    #1

    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
    icq: 237055440
  • dodger21
    Confirmed User
    • Jan 2003
    • 2680

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

    Comment

    • fatfoo
      ICQ:649699063
      • Mar 2003
      • 27763

      #3
      Originally posted by dodger21
      I get 404:Page Not Found when clicking this link.
      Send me an email: [email protected]

      Comment

      • seoguyzzz
        Confirmed User
        • Sep 2009
        • 997

        #4
        Originally posted by dodger21
        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
        icq:- 563619491


        article submissions + directory submissions

        Comment

        Working...