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
Ultra Talker

Posts: 432
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
__________________
www.mastech-solutions.com

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

Posts: 9,669
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 | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
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:
Hey there, qq212121...
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
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.11814 seconds with 13 queries