PDA

View Full Version : dynamic links to static


LESMC1
23-05-07, 15:44
How difficult is it to change the dynamic links to static? Can this be automated or would you have to change them individually?

authcode
23-05-07, 16:47
First you'd have to change the link structure in your client software to a static format which is fairly easy to do but then you'd have to use mod_rewrite to interpret your static URLs into dynamic URLs that can pass the parameters needed to drive your PHP code. This requires knowledge of mod_rewrite and regular expressions and the ability to create a .htaccess file on your server, assuming it's running apache and has mod_rewrite installed.
It's quite a big undertaking but there's loads of info out there if you search for "static to dynamic URLs" or "mod_rewrite". Hope that helps.

LESMC1
24-05-07, 01:18
thanks. There is a lot of help out there and I have found a very easy step by step guide.

authcode
24-05-07, 11:41
Cool. As a tip, if your pages have already been indexed by search engines then be sure to setup 301 redirects or 410 responses to avoid both your old dynamic and new static URLs being indexed at the same time which will look like duplicate content.