Execute .php to .html

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Wed May 07, 2014 8:50 pm

Execute .php to .html

Postby deepanc104 » Thu Jun 05, 2014 6:48 pm

Hi... I want php file shown in browser as .html or like a folder. Here I explain:
I have php code in (index.php) as <a href="cat.php?Id=$id"> something like this.Now When user click the link it show in browser as it be,like ...cat.php?Id=3 . But I want here , when user go to(by click) cat.php the browser show the URL as ...cat/3.html or ...cat/3

Cat = SQL column name
Id= SQL 'cat' fields.
How do I do this...
Its better also to index.php as index.html
Thanks in advance...

Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests