/id/1 to /index.php?id=1

Discuss practical ways rearrange URLs using mod_rewrite.

Postby richardk » Tue Oct 20, 2009 9:01 am

As far as i can see, the problem is not in those files, although your mod_rewrite could be written better
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^([-a-zA-Z0-9_]+)/([1-9][0-9]*)-([-a-zA-Z0-9_]+)\.html$ /modules.php?name=News&op=viewst&catseo=$1&sid=$2&titleseo=$3 [L]
RewriteRule ^([0-9]+)/([-a-zA-Z0-9_]+)\.html /modules.php?name=News&op=viewcat&catid=$1&catseo=$2 [L]


What is the outputted HTML link (the admin one that doesn't work) (<a href="...">) like in the source code of the page?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Previous

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron