Redirect .aspx page to extensionless page

David Pearson asked on July 21, 2016 21:47

I am trying to set a alias to redirect to the same page but without the extension. The result code is 200 with the url for the page being url + .aspx. I have the Alias redirect set to "Redirect to main URL".

What am I am missing?

Thanks David

Correct Answer

Roman Hutnyk answered on July 21, 2016 22:17

David, have you configured allowed extensions for your application under Settings -> URL and SEO?

Friendly URL extensions should be set to ";.aspx" to allow extensionless and aspx.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Joshua Adams answered on July 21, 2016 22:28

You may need to include the runAllManagedModulesForAllRequests in the web.config file as well. Should be included in the documentation for setup as well.

0 votesVote for this answer Mark as a Correct answer

David Pearson answered on July 22, 2016 19:52

I tried both of those on my localhost copy of the site. Had no luck. Here is the line I did for the web.config. modules runAllManagedModulesForAllRequests="true" around line 184.

I am running 8.2 with all the patches.

David

0 votesVote for this answer Mark as a Correct answer

David Pearson answered on July 22, 2016 19:55

Found the magic setting. Settings > URLs and SEO >> Redirect pages to main extension Checked...

Thanks David

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.