943,393 Members | Top Members by Rank

Jul 15th, 2003
0

.htaccess mod_rewrite problem

Expand Post »
What's wrong with the following line in my .htaccess file? All of my other rewrites work, just not this one.

I want
http://www.techtalkforums.com/forums...&view=previous
http://www.techtalkforums.com/forums...t=10&view=next
http://www.techtalkforums.com/forums...10&view=newest

to look like
http://www.techtalkforums.com/forums/t10previous.html
http://www.techtalkforums.com/forums/t10next.html
http://www.techtalkforums.com/forums/t10newest.html

I'm using the following code but it doesn't seem to work? It just goes to topic 10 (for example) while ignoring the view parameter. Any ideas?
RewriteRule ^t([0-9]+)(.*).(.*)$ /forums/viewtopic.php?t=$1&view=$2 [L]
Last edited by cscgal; Dec 8th, 2003 at 4:46 pm.
Similar Threads
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jul 15th, 2003
0

Re: .htaccess mod_rewrite problem

I figured out the problem. There was nothing wrong with this line. It's just that I also had another RewriteRule in the same format that took the same number of paramaters, that did something different entirely. I guess I just didn't realize it!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: IMAP Server
Next Thread in Linux Servers and Apache Forum Timeline: sendmail config





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC