Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > One page two URLs one with .aspx and the other without. View modes: 
User avatar
Member
Member
mpaulin - 1/30/2014 3:29:38 PM
   
One page two URLs one with .aspx and the other without.
Greetings,
I have one page on my site that has two URLs and the only difference between the URLS is the .aspx extension on the end. These two URLS come up in my reports for SEO activity and I would like to get rid of the URL with the .aspx extension as the other pages on the site do not have the extension. I did look in Properties/URLs to see if there was any settings that might cause this, the settings are the same as other pages on the site. Any ideas?
Thanks

User avatar
Member
Member
mpaulin - 1/30/2014 3:32:12 PM
   
RE:One page two URLs one with .aspx and the other without.
I just realized this post some how got placed in Kentico 4 and it should be Kentico 6. If an admin could move this to the correct section - thanks.

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 1/31/2014 11:09:51 PM
   
RE:One page two URLs one with .aspx and the other without.
Do you have an alias set up for that URL with the extension? Do you have your URLs set to redirect to the main alias in Site Manager>Settings? Are your URLs extensionless?

User avatar
Member
Member
mpaulin - 2/6/2014 9:39:48 AM
   
RE:One page two URLs one with .aspx and the other without.
Thanks for the reply. My URLs are extensionless - only several pages out of nearly 300 are showing with .aspx and without. The pages in question do not have an alias setup. The original build of the site - all pages had the .aspx extension. When we migrated to Kentico 6, we changed to go with extionless URLs.

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 2/7/2014 7:59:55 AM
   
RE:One page two URLs one with .aspx and the other without.
I'd suggest setting up an alias with the .aspx extension then for those pages in question. Also ensure you have your settings correct in Site Manager. Specifically the Redirect document aliases to main URL property.

When you navigate to those pages, where are the URLs created? Are they in an editable text webpart or somewhere else where it is not dynamically generated?

The pages in question, do they have forms on them or something where you'd post back? If you'd need to add this web.config key
<add key="CMSUseExtensionOnPostback" value="false"/>