, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > General > Feature Requests > losing .php extension

FlexCMS Support Forum


losing .php extension
Started August 9, 2005 @ 5:28pm by notdodgy
Post Message 
notdodgy


Posts: 46
 
losing .php extensionAugust 9, 2005 @ 5:28pm
A suggestion from another cms I have used.
This gets rid of the need to include the .php on index.php.
This cleans up the urls used in links, so that you have:
http://www.mysite.com/index/guestbook.html
instead of
http://www.mysite.com/index.php/guestbook.html

Roger


Code

# These directives are necessary in order to tell Apache to treat
# the file 'index' as a PHP script. Avoiding the .php extension
# has some benefits, as some search engines don't parse .php files.


# Make sure PATH_INFO is available
<IfDefine APACHE2>
AcceptPathInfo On
</IfDefine>

# Let Apache know that 'index' is really a PHP script in disguise.
<Files index>
ForceType application/x-httpd-php
</Files>
 
notdodgy


Posts: 46
 
Sorting of ArticlesAugust 9, 2005 @ 5:33pm
The article feature is great if used for news, with the most recent item at the top of the list.

If you want to use the article feature for items other than news, then it would be preferable to be able to define the order the items are listed in.

e.g. add an order field.
If blank (or equal to another entry) then sort on date.

Roger
 
DCSun
Administrator



Posts: 625
 
August 9, 2005 @ 5:39pm
Roger,

Thanks for the suggestion on ordering the news/articles content. We'll look at adding that to the next version.

As for removing the .php extension, that's already an option in FlexCMS. You can see it done on this site (just called 'flex' instead of index.php), as well as some others out there. Instructions for removing it are located here. If you decide to go that route, don't forget to update the copy as well when performing any modifications or updates in the future.


David


FlexCMS v3.2 Has Been Released!
 

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.14533 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS