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.
.htm extension on certian pages only
Re: .htm extension on certian pages only
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
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.
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
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
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.
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
You need to post your question on Apache support forums, htaccess and mod_rewrite in particular.