, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

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: 392
 
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
 

Post Message 







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

Processing Time: 0.12460 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!