Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-12-01 00:29:23
- forefront
- New Member
- Registered: 2005-12-01
- Posts: 5
.html page extensions to pages and textpattern as a CMS
I am looking at whether textpattern could be used as a CMS for a website, currently made of about 40 static HTML pages.
How could I have textpattern-managed pages (static, blog content, etc.,) have an .html page extension appended to them so I can have:
/contact.html
instead of
/contact/
(I realize mod_rewrite will be required).
Also, any experience you may have of using textpattern as a cms is much appreciated – resources, links, templates, etc.,
Thanks!
Offline
Re: .html page extensions to pages and textpattern as a CMS
That could be quite a work to rework how the links are generated.
I would suggest another way to this… list all your URL, and create rules to permanently redirect them to the new clean TXP urls. Put that in the Apache config file (or in a .htaccess). The change will be transparent to everyone, including spider bots.
Offline
Re: .html page extensions to pages and textpattern as a CMS
And all the best links are at the top of this page.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#4 2005-12-01 02:54:03
- forefront
- New Member
- Registered: 2005-12-01
- Posts: 5
Re: .html page extensions to pages and textpattern as a CMS
The question remains – can one do this with textpattern?
Offline
Re: .html page extensions to pages and textpattern as a CMS
You will need to check the source code, and look at how the URL scheme are constructed. Then edit it.
Offline
#6 2005-12-01 03:46:14
- NXArmada
- Member
- From: Sevierville, TN
- Registered: 2005-09-13
- Posts: 82
Re: .html page extensions to pages and textpattern as a CMS
Not worth trying. Jeremie post is the best way to go.
Ryan
Offline
Re: .html page extensions to pages and textpattern as a CMS
If you don’t know how to redirect, it’s quite simple. Just write in your root .htaccess file, at the begining, rules like this :
<code>Redirect permanent /contact.html /contact</code>
One line for each document or page. If you are lazy, geek vodoo ways will help you. You might want to browse trough your entire website, and then grep your apache access log to output a list of all your urls. Then, copy/paste.
Offline
Re: .html page extensions to pages and textpattern as a CMS
TXP makes a great CMS. For a myriad of site styles.
And don’t worry about needing the .html extension… your site will be spidered just fine (especially if you add the Google Sitemap plugin).
Follow Jeremie’s advice on the redirect (i’ve used them extensively) and your golden!
Eric
Offline
#9 2005-12-01 11:48:54
- forefront
- New Member
- Registered: 2005-12-01
- Posts: 5
Re: .html page extensions to pages and textpattern as a CMS
Yes I could do a redirect, yes I could look into the code but the question sought help on how specifically to append an .html extension
Offline
#10 2005-12-01 12:09:02
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: .html page extensions to pages and textpattern as a CMS
the question sought help on how specifically to append an .html extension
The answer: don’t. Far more trouble than it’s worth.
Alex
Offline
#11 2005-12-01 12:21:04
- forefront
- New Member
- Registered: 2005-12-01
- Posts: 5
Re: .html page extensions to pages and textpattern as a CMS
For whom and why?
Offline
Re: .html page extensions to pages and textpattern as a CMS
For whom?
For you. You would have to hack the source code to make this work. You would be circumventing how the TXP CMS works. That means all future upgrades of TXP would also need to be hacked to make this work. Unless you chose to stay with a single release of TXP and forego all upgrades.
Why?
Because the .html (or any extension) is not needed. Search Engines don’t need extensions to see your site. Human visitors don’t care what the extension is… not having one makes it easier for your visitors to remember the url. “Hmm… was it htm, html, shtml, php, pl, cgi, ????”
Eric
Offline