By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

MOD Rewriting

100+
P: 133
I have an issue with this that i cannot figure out:

What i have done is i have links like this:
<a href="{$domain}/corporate-events/{$result.subcategory|stripres}.html" title="Corporate Events - {$result.subcategory}" class="submenu">{$result.subcategory}</a>

With the re-write rule:
RewriteRule ^corporate-events/(.*)\.html$ entertainment-listings.php?title=$1

This is working fine but what i want to do now is have the link like this:
<a href="{$domain}/{$resultb.region|stripres}/{$cat}/{$pagename|stripres}.html" title="{$resultb.area} - {$resultb.region}" class="submenu">{$resultb.region}</a>

What would the re-write be on this?

Cheers,
Adam
Feb 18 '08 #1
Share this Question
Share on Google+
1 Reply


PareshRathod
P: 28
Hi Adam,

To avoid the conflicts between different same structured url, we use atleast one static word in the url, like product,category etc...

But in your case there is not even a single static word to differentiate the urls.

So better way is to modify the url and adjust it with one static word and the create rewrite rule.

Regards,
Paresh
May 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.