/    Sign up×
Community /Pin to ProfileBookmark

Mixing php and htm pages in one website

I’m just wondering,

I have a web site which contains quite a few pages using php.

But there are some pages that I have kept as normal htm pages.

So one web page may have links to php files and htm files.

My question is really, should all the pages be kept consistant and all php files, or do people mix php files with htm?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@bokehApr 26.2005 — It doesn't really matter. If you want you can just change the ones with the .htm extension to .php and they will run just fine and give a uniform look to the site. Or you can use mod_rewrite and not bother using extensions in the URI at all.
Copy linkTweet thisAlerts:
@BigMoosieApr 26.2005 — Or you can use mod_rewrite and not bother using extensions in the URI at all.[/QUOTE]

I wanted to do this but could not find out how, can I use .htaccess file to execute all files without extensions as if they are .php? If so what would be the code?

Thanks - BigMoosie.
Copy linkTweet thisAlerts:
@NogDogApr 26.2005 — I doubt that any site visitor except yourself will care if some pages have a .php suffix and some a .html suffix. ?
Copy linkTweet thisAlerts:
@bokehApr 26.2005 — I wanted to do this but could not find out how, can I use .htaccess file to execute all files without extensions as if they are .php? If so what would be the code?

Thanks - BigMoosie.[/QUOTE]


I'm no server expert but on my server (details below) this works automatically without a .htaccess file or any details in the httpd file. I don't know why but it just does. Server was from a pre-configured package. Look [URL=http://www.bugster.co.uk/bugeye]here[/URL] and [URL=http://www.bugster.co.uk/bugeye]here[/URL] to see what I mean. Both are the same file.
Copy linkTweet thisAlerts:
@BigMoosieApr 26.2005 — I presume you meant [URL=http://www.bugster.co.uk/bugeye.htm]here[/URL] and [URL=http://www.bugster.co.uk/bugeye]here[/URL].
×

Success!

Help @Lextar spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...