Jump to content

Queer Rewriterule Problem


Fmdpa
 Share

Recommended Posts

I have a simple RewriteRule in my .htaccess file:

RewriteEngine OnRewriteRule ^broadcasts/?$ broadcasts.php?action=view&page=1

The problem is that the browser is showing this when I visit /broadcasts: /broadcasts/?action=view&page=1 I am completely stumped because nothing like this has ever happened to me before. Any ideas or solutions?

Link to comment
Share on other sites

Good guess, I didn't catch that! However, I'm still having the problem. Erased everything else in the htaccess file (other than "RewriteEngine On") and it is still doing it. So it is not being caused by some other rule. I'm so confused....

Link to comment
Share on other sites

It still matches

/broadcasts:

?I'm out of ideas for that one... but for the query string bit, you can deal with that with RewriteCond. According to the docs

RewriteCond %{QUERY_STRING} =""

(i.e. apply the following rule only if the query string is empty)should be sufficient.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...