.htm extension on certian pages only

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
Jesse
Forum Members
Forum Members
Posts: 29
Joined: Fri Jan 07, 2011 8:56 pm

.htm extension on certian pages only

Post by Jesse »

I saw this tip on how to add .htm extension to all pages:
http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s

Is there a way to specify that it be added to certain pages only?

We are trying to retain ranking from incoming links by keeping in our new cmsms site identical to those of the previous static site for specific pages only.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: .htm extension on certian pages only

Post by Wishbone »

I tried to add a .htm in the 'Page URL' and the 'Page Alias' fields, but it wouldn't take it... Would have been great if it did.
Jesse
Forum Members
Forum Members
Posts: 29
Joined: Fri Jan 07, 2011 8:56 pm

Re: .htm extension on certian pages only

Post by Jesse »

Hi Wishbone,
No CMSMS does not let you add an extension like .htm in the page url or page alias fields. The link I provided above details how to set up the .htaccess file to add ".htm" to whatever your urls are.

My question was really if anyone knew of a modification to the .htaccess file which targets specific pages to have ".htm" added, rather than having it added globally to all pages.
replytomk3

Re: .htm extension on certian pages only

Post by replytomk3 »

Explain what you need this for. It would be easiest to 301 those special links to a uniform URL hierarchy (if you are duplicating old site URL structure)
Jesse
Forum Members
Forum Members
Posts: 29
Joined: Fri Jan 07, 2011 8:56 pm

Re: .htm extension on certian pages only

Post by Jesse »

I have already created 301s to a uniform structure. We were originally planning to uniformly have pagenames without the .htm extension.

The problem is with external links to our pages. Our SEO guy is adamamant that it will hurt our google ranking if the urls that external sites use get changed. However only a few of our pages are linked externally, so I would really only need to change those to have the .htm extension.

To complicate it more, there are a couple with a .html extension. So if there was a way to specify particular pages to add .htm or .html to, that would be ideal.
replytomk3

Re: .htm extension on certian pages only

Post by replytomk3 »

You need to post your question on Apache support forums, htaccess and mod_rewrite in particular.
Post Reply

Return to “CMSMS Core”