Need SSI function, but can't change urls

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
keress
Forum Newbie
Posts: 22
Joined: Thu Jul 14, 2005 5:25 pm

Need SSI function, but can't change urls

Post by keress »

I have a large existing site I'm working on that gets good traffic that my client is heavily dependent on. I don't dare change his url's for fear the engines will drop his pages out of sight and his business will crash. I'd love to be able to use SSI's in the navigation structure, but can't afford to change the extensions of his files to .shtml. Also can't afford to change them to .php's. Is there some alternative method of achieving this function that will not involve changing urls?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Just configure apache to enable ssi/php for resources that end with .html (or whatever your client is using..)
keress
Forum Newbie
Posts: 22
Joined: Thu Jul 14, 2005 5:25 pm

Post by keress »

Thanks for the speedy reply. How do I do that?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Research htaccess.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

http://httpd.apache.org/docs/2.2/howto/ssi.html (And lookup the meaning of the AddType directive...)
keress
Forum Newbie
Posts: 22
Joined: Thu Jul 14, 2005 5:25 pm

Post by keress »

Thanks for the link. I found this one googling SSI htaccess: http://www.javascriptkit.com/howto/htaccess4.shtml. It mentions that there's a server drain if all .htm pages are read as SSI. Does anyone know if I should worry about it? My pages are now controlled by CSS, with very little coding on each page. Would each htm page being processed as SSI be more of a drain than the many lines of javascript I used to use to control navigation?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Comparing apples and oranges? JavaScript puts load on your client's machine... Enabling SSI on your webserver puts load on your server machine...
Post Reply