Can't Get the Variables Out. Help Please.

Discussion in 'Apache' started by everett sizemor, Aug 2, 2006.

  1. #1
    http://www.website.com/filename.php?page1_fda=3916b771c43386c5d064c7


    I need to rewrite the URL above to be just:
    http://www.website.com/filename.php

    There is no reason for us to have variables in the URL, but due to the system we use it just automatically puts them in.

    Here is what I have tried in the .htaccess file but it's not working:

    Options +FollowSymlinks
    RewriteBase /
    RewriteCond %{REQUEST_URI} !index.html
    RewriteRule ^(.+)\?page(.+) \1

    Anyone know the correct expressions to get rid of the tail end of my URL above?

    Thanks!
     
    everett sizemor, Aug 2, 2006 IP