MOD Rewriting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adamjblakey
    New Member
    • Jan 2008
    • 133

    MOD Rewriting

    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.subcat egory|stripres} .html" title="Corporat e Events - {$result.subcat egory}" class="submenu" >{$result.subca tegory}</a>

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

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

    What would the re-write be on this?

    Cheers,
    Adam
  • PareshRathod
    New Member
    • Mar 2007
    • 28

    #2
    Hi Adam,

    To avoid the conflicts between different same structured url, we use atleast one static word in the url, like product,categor y 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

    Comment

    Working...