Static pages to dynamic pages!

New to mod_rewrite? This is a good place to start.

Static pages to dynamic pages!

Postby scottis4 » Tue Feb 25, 2003 5:51 am

Hi all,

Firstly i would like to thank everyone that might be able to assist with this task i am about to undertake. :)

What i would like to do with the mod_rewrite module is have a URL as:
http://www.mydomain.com/s/t/gr/buckie.html into the broswer which would then call on this page:
http://www.mydomain.com?country=scotlan ... own=buckie
obviously there is several hundred possible URL's to which i would like to redirect.
I have completed a simple redirect that goes from fred.html to nohead.html (from an online example), first thoughts were to have a redirect for each possible outcome of the above senario, which would create a large (pointless) .htaccess file.
Is it possible for me to actually query each URL inbound and then process this from a query on each directory within the requesting URL i.e. using the above example: s would know that the country was scotland where t would know that it was a query on my tour category and so on to the last where the *.html file would populate the final query again using the above town would equal buckie!

i hope this makes sense and look forward to any replies...

Best wishes,

George
scottis4
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 9 guests

cron