Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation suggestion: How to redirect other extensions #3

Closed
RyanEaves opened this issue Mar 2, 2013 · 1 comment
Closed

Documentation suggestion: How to redirect other extensions #3

RyanEaves opened this issue Mar 2, 2013 · 1 comment
Assignees

Comments

@RyanEaves
Copy link

I needed to use this to migrate from a PHP based site, and it took some work to figure out how. So I thought I would share the knowledge. These instructions are for IIS6, although I'm sure you can derive how to do it in IIS7 easily.

  1. Add the extension mapping in IIS for your site.

Go to properties for your site, Home Directory, Configuration button, Mappings tab, Add...

Executable: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
Note: The above path will be different for you if you use x64 or a different version of .net. Just use the same path that is mapped to the .aspx extension and it will work.
Extension: .php
All Verbs
Script engine: checked
Verify that file exists: UNCHECKED (very important)
Click OK

  1. Tell Sitecore to process php files:

Open Web.config
Do a search for: Sitecore.Pipelines.PreProcessRequest.FilterUrlExtensions
Underneath that line, there is a parameter for "Allowed extensions". Add php to the list.

DONE! Now you can add rules to this module that redirect .php files. You can do this exact same process for other extension types like .html, .jpg/.gif/.png, .pdf, etc as well if you need to redirect those. Hope that saves someone a few hours of research!

@ghost ghost assigned thecadams Apr 23, 2013
@thecadams
Copy link
Owner

This is now integrated into README.md. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants