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
Please help with url rewriting ( going mad)
Old 08-10-2009, 03:26 PM Please help with url rewriting ( going mad)
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
HI

i have a navigation solution thats similar to below

Kingston (section)

research (subsection)
law (subsection)



The section rewite is below:

RewriteRule ^kingston/business/school/(.*?)/$ http://127.0.0.1/flavor1.php?id=$1

(works a treat)

however the subsections by example > research

I defined this as below: (research is the subsection )

RewriteRule ^kingston/law/school/research/(.*?)/$ http://127.0.0.1/flavor1.php?id=$1

My problem is the first url rewrite is all processed so my url directs to

http://127.0.0.1/flavor1.php?id=research/311

As you see it running the first rewrite and adding research/(.*?)/ as the variable

How do i avoid this?

Thanks
__________________

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

Last edited by numbenator; 08-10-2009 at 03:28 PM..
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 08-10-2009, 09:03 PM Re: Please help with url rewriting ( going mad)
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm not sure if this will work, but could you place the second rule first in your .htaccess and then add [L] to the end. The [L] says not to process anything else.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-12-2009, 02:56 PM Re: Please help with url rewriting ( going mad)
globalamp's Avatar
Novice Talker

Latest Blog Post:
General Dramatically smart
Posts: 11
Trades: 0
i'm sorry but i have to laugh at your getting mad. i can so relate. i've wanted to rage a few times with that junk. haha
__________________

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


Please login or register to view this content. Registration is FREE
(Getting ready to launch)
globalamp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Please help with url rewriting ( going mad)
 

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.11537 seconds with 12 queries