Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to setup a robots.txt. Where do i config the UrlRewriting in Umbraco 8. Can't seem to find it.
Thanks!
Int the Web.Config i would think.
Those are IIS rewrite rules. In V7 there was a ~\Config\UrlRewriting.config But i'm looking for a V8 solution.
Thanks
Hi Josker,
The UrlRewriting was removed. Use the IIS rewrites instead.
Make sure you have this installed for IIS - https://www.iis.net/downloads/microsoft/url-rewrite
Search the web.config file for: IIS rewrite rules
And add something like this:
<rewrite> <rules> <rule name="LogoutRewrite" stopProcessing="true"> <match url="^Logout/?$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="/umbraco/Surface/LoginForm/Logout" /> </rule> </rules> </rewrite>
I just got got the robots.txt stuff working in V8 and this is the rule I used for the rewrite:
<rule name="robots.txt" stopProcessing="true"> <match url="^robots.txt" /> <action type="Rewrite" redirectType="Permanent" url="{path to robots page in umbraco}" /></rule>
Exactly what i was looking for also!
It worked for me.
Thanks for sharing.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
UrlRewriting in Umbraco 8
I'm trying to setup a robots.txt. Where do i config the UrlRewriting in Umbraco 8. Can't seem to find it.
Thanks!
Int the Web.Config i would think.
Those are IIS rewrite rules. In V7 there was a ~\Config\UrlRewriting.config But i'm looking for a V8 solution.
Thanks
Hi Josker,
The UrlRewriting was removed. Use the IIS rewrites instead.
Make sure you have this installed for IIS - https://www.iis.net/downloads/microsoft/url-rewrite
Search the web.config file for: IIS rewrite rules
And add something like this:
I just got got the robots.txt stuff working in V8 and this is the rule I used for the rewrite:
Exactly what i was looking for also!
It worked for me.
Thanks for sharing.
is working on a reply...