shtml configurable?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

shtml configurable?

Post by Ted »

It's possible, but not quite that easy. You would have to modify htacess as well. Plus, some extensions have ramifications. For instance, if you used html, then EVERY request for an html page would go to index.php, which obviously would be bad if you have other stuff on that server.
100rk

shtml configurable?

Post by 100rk »

And another thing: my webhosting allow my own .htaccess file, but I can not change rewrite settings in it - those changes provide server administrator, after someone like me sends concrete conf. request to him.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

shtml configurable?

Post by sjg »

wishy wrote:It's possible, but not quite that easy. You would have to modify htacess as well. Plus, some extensions have ramifications. For instance, if you used html, then EVERY request for an html page would go to index.php, which obviously would be bad if you have other stuff on that server.
I'd also cast my vote for having this configurable.

I use mod_rewrite and add a special path to static html pages, so that I can control which pages get run through PHP.

If there's to much concern about people getting confused by this option, there could be a big red alert if you change the value. Or, it could be modifiable only in the config.php file and not through the admin web interface. That would mean only people who knew what they were getting into would be able to make the change (in theory. We all know that end-users are ingenious).
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Ian

Why .shtml?

Post by Ian »

At the moment it makes no difference to me either way - but in the future, who knows? We all like flexibility - it allows us to dig even bigger holes to fall into. :wink:

Out of interest, why was .shtml chosen as the extension, given that this is usually used for pages containing SSIs?

Just curious. :)
pielmorena

Re: shtml configurable?

Post by pielmorena »

Hi,

I have two questions.
#1: I have an existing site using the following naming scheme: http://domain.com/arizona/arizona.shtml - then i do same for all 50 states.  Is it possible to have this program output the path in the same manner? in other words give it a url to use?  I do not wish to point those pages to index.php file

#2: .shtml
All the files listed above are .shtml.  Can someone please post instructions on how to output .shtml files.  I am already using mod_rewrite and can modify the .htaccess in my directories.  I'm already using it in other directories.

Thanks
Post Reply

Return to “CMSMS Core”