Doesn't work. It still adds the ?f=4..... stuff. Plus, I will also need to add other things, like f=5, once I get the stupid file working.
Main Topics
Browse All TopicsI have:
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} f=4
RewriteRule ^theforum/viewforum.php http://www.ceetus.com/foru
It takes this URL:
http://www.ceetus.com/thef
and makes it:
http://www.ceetus.com/foru
I don't want the ?f=4&sid=08bc702c566aa6fa5
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Try to change this:
RewriteRule ^theforum/viewforum.php http://www.ceetus.com/foru
to this:
RewriteRule ^theforum/viewforum.php(.*
That doesn't work either. No matter what the rule is, the query string is still appended to the end.
I have a rule for:
http://www.ceetus.com/inde
Where it would go to:
http://www.ceetus.com/
You can add whatever you want for the query, and it redirects to http://www.ceetus.com/?wha
Try to add '?' at the end of the substitution field:
RewriteRule ^theforum/viewforum.php(.*
If you are not sure that it works, read a note in apache documentation page (at the bottom):
http://httpd.apache.org/do
Note: Query String
... When you want to erase an existing query string, end the substitution string with just a question mark. ...
Business Accounts
Answer for Membership
by: glcumminsPosted on 2007-03-27 at 13:21:52ID: 18803271
Just remove this line:
m/promotio n-b4.0/ [R=301,L]
RewriteCond %{QUERY_STRING} f=4
So your rewrite section becomes:
RewriteEngine On
RewriteBase /
RewriteRule ^theforum/viewforum.php http://www.ceetus.com/foru