GetSimple Support Forum
FancyURL - .html ending? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: FancyURL - .html ending? (/showthread.php?tid=2328)



FancyURL - .html ending? - mrmut - 2011-11-03

Hello all,

this is my first post.

I view Get Simple CMS as a pure ingenuity. It is so simple and usable, that I don't see any other CMS approaching even close to it. Fantastic! I will transition to this platform, so I need some help with it ->

How to make FancyURL ending with ".html" instead of "/"?
- "/" is nice, but I prefer ".html".
- Any specific reason why ".html" is not default?


Thanks a lot! :-)


FancyURL - .html ending? - Connie - 2011-11-03

Welcome here!

well:

Quote:- Any specific reason why ".html" is not default?

yes: because the world is full of possibilities and there is not only one way for happiness ;=)

There is a thread which tells you what to do: http://get-simple.info/forum/post/7918/#p7918

do this:
edit your .htaccess-file:
instead of

Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

set this:
Code:
RewriteRule ([A-Za-z0-9-]+).html index.php?id=$1 [QSA,L]

plus:

change the custom permalink-structure in the configuration / settings to:
Code:
%slug%.html

or
Code:
%parent%/%slug%.html

I tested it and it worked (I am on a apache server, for sure)


FancyURL - .html ending? - mrmut - 2011-11-03

Rock and roll! :-)

Thanks, it worked like a charm!

I updated wiki page: http://get-simple.info/wiki/config:htaccess


FancyURL - .html ending? - Connie - 2011-11-03

great! I was thinking that we have to add this to the WIKI and you did, thanks!

Connie


FancyURL - .html ending? - mrmut - 2011-11-03

Connie Wrote:great! I was thinking that we have to add this to the WIKI and you did, thanks!

Connie

:-) Thanks for help Connie.
I styled it a bit better now.