Hi...

Can anyone help me in this issue pls…

i want to change dynamic .php pages to .htm pages.

for example:-
www.domain.com/index.php?id=12
into
www.domain.com/index.htm/12

if this is confusing pls visit http://www.techstore.co.uk. this is php page but when u click on links it directs as a .htm pages.

Pls reply…

Shaaa

You will need to look at Apache or whatever webserver you are running to do this. I know with Apache you can tell it to send .html files to the php paser.

http://www.techstore.co.uk dosn’t link to html-pages it just creates the look and feel of thet sides beeing statik html pages.

this can be done by apaches rewriteengine

just put the following code in the httpd.conf or in a .htaccess file in the root dir

RewriteEngine On
RewriteRule ([0-9]+).html index.php?id=$1 [QSA,L]

when u request the url http://www.domain.com/12.html apache will internally call index.php?id=12 but the user won’t notice.

Thanx for the reply…

RewriteEngine On
RewriteRule ([0-9]+).html index.php?id=$1 [QSA,L]

if i do this can i change all my .php pages into static .html pages?

i mean if i need to change something like

…index.php?itemID=xxx&recordID=yyyy

Thanx in advance…

yes, its just a regular expression.

i think smarty is good for that :lol:

Sponsor our Newsletter | Privacy Policy | Terms of Service