.htaccess mod_rewrite problem

Thread Solved
Reply

Join Date: Feb 2002
Posts: 12,024
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

.htaccess mod_rewrite problem

 
0
  #1
Jul 15th, 2003
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.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,024
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: .htaccess mod_rewrite problem

 
0
  #2
Jul 15th, 2003
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!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC