Site structure
Version 5.x > Site structure > Extensionless URL for landing page View modes: 
User avatar
Member
Member
kyleg-directec - 8/2/2011 1:28:36 PM
   
Extensionless URL for landing page
First off I am not completely sure that I am posting this in the right spot on the forum; but there is only one way to find out, right?!

I am currently trying to add a landing page to a current Kentico site. For marketing purposes I do not want the custom URL to have an extension. The rest of the site does have extensions (mainly .aspx).

I have seen the Friendly URL extnsion under site manager>SEO&URL, but my question is this:
I dont want to have to go back and change all the other pages URLs from .aspx extension to none, and also I am afraid if I do this that many cashed images that currently pull from .aspx files will no longer work by switching the Friendly URL extension from .aspx to being blank.

If I add something such as >> ;.html;.htm;.xxx;.abc in the Friendly URL extension field, would this work so to achieve being able to use extensionless URLs while still keeping the URLs with extensions? Or is there a better way? I am not very skilled in this area so there might be a much more simple way I am unaware of.

Thanks in advance!

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/4/2011 2:16:23 AM
   
RE:Extensionless URL for landing page
Hello,

It is definitely achievable to use extension-less URLs together with an aspx extension or any other one within a site. Firstly, you need to setup extension-less URLs as described here: http://devnet.kentico.com/docs/devguide/custom_url_extensions_iis7.htm and set the allowed extensions in Site Manager -> Settings -> Your_Site -> URLs and SEO -> Friendly URL extensions. There needs to be the following value for this field:
.aspx;;

This way, all the controls will generate document URLs with aspx extensions, however those documents or any other will be available also without it. This basically allows you to create your landing page without that aspx extension.

Best regards
Ondrej Vasil

User avatar
Member
Member
kyleg-directec - 8/10/2011 8:04:56 AM
   
RE:Extensionless URL for landing page
Thanks for your response. However, I am still seeing troubles. I added the additional controls to the web.config file as mentioned in the devguide, and I also added the .aspx;; to the friendly urls extension field. So I am not certain why this problem persists. Any idea?

<code> <!-- Content staging END -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<httpErrors existingResponse="PassThrough" />
<modules runAllManagedModulesForAllRequests="true">
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="XHtmlModule" type="CMS.CMSOutputFilter.OutputFilterModule, CMS.OutputFilter" />
<remove name="WebDAVModule" />
</modules>
</code>


User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/10/2011 11:56:03 PM
   
RE:Extensionless URL for landing page
Hi,

Have you added the friendly URL extension settings as global setting and/or is it inherited by the site properly (When you select the site in the dropdown list)?

Which application pool pipeline mode are you using, Classic or Integrated? You may need to use the Integrated. Are you using IIS 7 or higher?
Thanks in advance for info.

Regards,
Zdenek C.

User avatar
Member
Member
kyleg-directec - 8/11/2011 7:56:16 AM
   
RE:Extensionless URL for landing page
I have all the options under URL & SEO set to inherit from global.

I believe we are using an Integrated pipeline, but I am not completely sure on that

We are using either IIS 7 or 7.5

Thanks for the assistance.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/11/2011 11:58:15 AM
   
RE:Extensionless URL for landing page
Hi,

I would guess so with the app.pool pipeline mode (from your web.config), but please check it for any case.

Also, do you see any errors in the Event log (Site manager -> Administration)?

Optionally if you could provide us with access to your site administraton, please let us know at support@kentico.com

Regards,
Zdenek C.

User avatar
Member
Member
kyleg-directec - 8/12/2011 7:47:50 AM
   
RE:Extensionless URL for landing page
I apologize, after checking with our administrator about what IIS we are running the first time I was told it was IIS 7, after double checking with no luck again I found, in fact, it is IIS6.

With this known, I also found what I need to change to accomodate the extenion-less URLs I still have one question.

When using this method, does using that approach mean that every page requested raises a 404 error which then redirects to another page? What would this mean for my site SEO? I feel as if this could harm my SEO rankings, due to the 404 error being returned each time....but I know this is a little over my head so I figured I would get your input.

Thanks,
Kyle

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/12/2011 8:24:42 AM
   
RE:Extensionless URL for landing page
Hi,

That's ok. It was apparent from the info you've sent by email.

As for handler404.aspx - you don't need to worry about SEO with this approach. The handler returns valid response code - 200/301 if the page was found and 404 only when it's not found. We use RewritePath, not Redirect, therefore the URL stays intact and looks fine externally and only the response is driven according our rewriting logic.
You can verify the response codes by using any common web browser development tool.

There are only some limitations in processing some file and media links (AFAIK that you can't use friendly extensions for certain attachments).

Regards,
Zdenek C.

User avatar
Member
Member
kyleg-directec - 8/12/2011 10:16:07 AM
   
RE:Extensionless URL for landing page
Thanks for your help. I had the personnel with administrative controls to our server add the information required for IIS6. Now instead of returning a 404 error the, it is returning simply "File not found Firefox can't find the file at http://www.mydomain.com/subpage" error.

Do you know what could potentially cause this? Would it be a simple mis-spelling of a file, or something else perhaps?

I don't have access to admin controls and therefore cannot check the settings myself, and before asking if he messed up, I figured I would check and see your thoughts first.

Thanks again.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/16/2011 7:43:06 AM
   
RE:Extensionless URL for landing page
Hi,

Have you setup any Page not found URL in Site manager -> Settings -> Web site?
The correct extensionless URLs work fine.

Regards,
Zdenek C.

User avatar
Member
Member
kyleg - 8/16/2011 7:46:50 AM
   
RE:Extensionless URL for landing page
Hi, Thanks for your response. I meant to update this thread yesterday. I finally got everything straightened out. The file path that was put in the custom error code fields in the IIS manager by the admin with priveleges to access it on the server was incorrect. Once I was able to actually get to look at the IIS setting myself I made the change...Everything works as it should.. Thanks for the help!