RC51 - Homeowner Loans - Mobile Phones - Remortgages - Car Insurance

PDA

View Full Version : Dynamic to static


deebo
Dec 18th 2004, 2:43 pm
I hope u guys can help me out.
I'm looking for how the code for mod_rewrite can look for the following.

I would like to make my dynamic links to static. The hosting company I'm using does not support mod_rewrite but by next week, I will move to a new hosting company that does support mod rewrite.

I would like the links to be written from for instance http://www.marketuganda.com/menues.php?head=1 to http://www.marketuganda.com/accomodation.html and so on. I can also consider http://www.marketuganda.com/uganda_accomodation.html

SInce I use an admin for adding on categories and sub categories, the solution should enable automatic conversion of those links to stati. Morever, the visitors should se the static names instead of the php.

goldensea80
Jan 7th 2005, 9:55 am
If you are an expert at PHP, you can write some program that read from your database and write in to HTML form. But the, it wouldn't be dynamic any more.
By far I don't know any software like that,

pwaring
Jan 14th 2005, 7:32 am
What do you mean by changing your links from dynamic to static? Do you want your pages to be statically generated instead of dynamically (e.g. have PHP scripts produce HTML pages) or have your links look like static pages that actually point to PHP scripts that generate output on-the-fly?

I can help you change your links to that /accomodation.html points to /phpscript.php?section=accomodation or whatever if that's what you want.