Forum Moderators: phranque
Am I wrong or do I need to keep ID as variable in order to find it and then rewrite?
I would have it just before the name and separated from it with a hyphen.
^([0-9]+)-(.*) There is no way to tell mod_rewrite that "updates" = 0, "notices" = 1 and so on. If there are too many to list manually, you would have to rewrite to a php script that looks them up.
url.com/updates/update-of-the-day
Request a page of your site, then change one thing in the address bar of your browser. Swap the first word to one of the other options (updates, notices, events) and check that the new URL request returns a 404 response. Failure to do this is a common source of duplicate content.
You should include the ID number in your URL but NOT as a folder level. I would have it just before the name and separated from it with a hyphen.
url.com/notices/10/notice-titlereplaced for
url.com/UPDATES/10/notice-titleSTILL OPENS