Page 1 of 1

.htm extension on certian pages only

Posted: Wed Aug 31, 2011 7:02 pm
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.

Re: .htm extension on certian pages only

Posted: Thu Sep 01, 2011 12:18 am
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.

Re: .htm extension on certian pages only

Posted: Fri Sep 02, 2011 5:57 pm
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.

Re: .htm extension on certian pages only

Posted: Sat Sep 03, 2011 2:03 am
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)

Re: .htm extension on certian pages only

Posted: Tue Sep 06, 2011 5:49 pm
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.

Re: .htm extension on certian pages only

Posted: Tue Sep 06, 2011 10:57 pm
by replytomk3
You need to post your question on Apache support forums, htaccess and mod_rewrite in particular.