Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
problems creating similar urls URL Rewriting
Old 07-30-2009, 05:06 PM problems creating similar urls URL Rewriting
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi all

I relatively new to this url rewriting but have come up against an issue which i wondered if someone could help me with.

I have created a URL Rewrite rule for sections on my site which is like below:

RewriteRule ^research/centres/(.*?)/$ /flavor1.php?id=$1

Which works great. Enter /research/centres/209/ and if correctly directs to /flavor1.php?id=209

Sub sections which direct to a different page i defined as below:

RewriteRule ^research/centres/group/(.*?)/(.*?)/$ /researchgroup.php?id=$2&title=$1

My problem is that the first Rewrite rule is always processed

So if i enter url /research/centres/group/this is the title/999/

The result of redirect is

/flavor1.php?id=this is the title

as opposed to /researchgroup.php?id=999&title=this is the title

If anyone can help me in how i overcome this i would be really greatful.

Thanks very much
Steve
__________________

Please login or register to view this content. Registration is FREE

Last edited by numbenator; 07-30-2009 at 05:09 PM..
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 07-30-2009, 05:32 PM Re: problems creating similar urls URL Rewriting
danielsolution's Avatar
Novice Talker

Posts: 9
Name: Daniel
Trades: 0
Are you sure it would be getting the article from the title, remember that it can be interpreted as title%20of%20the%20document

Or perhaps I am missing something here...?
__________________
Daniel S.

Please login or register to view this content. Registration is FREE
Toronto
danielsolution is offline
Reply With Quote
View Public Profile
 
Old 07-30-2009, 05:43 PM Re: problems creating similar urls URL Rewriting
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
its not the title thats the problem. its the fact that

^research/centres/(.*?)/$ /flavor1.php?id=$1

is processed and not /research/centres/group/this is the title/999/
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to problems creating similar urls URL Rewriting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11643 seconds with 12 queries