You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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!
The text was updated successfully, but these errors were encountered:
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.
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
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!
The text was updated successfully, but these errors were encountered: