Redirects – Web.config file – Windows Server
-
I’ve got my WordPress platform located https://www.name-of-site.co.uk/wordpress and I’m wanting to redirect, as a test, redirect a category on the blogging platform to a particular page on my website https://www.name-of-site.co.uk/particular-page.asp I’m currently using a Windows server so I am making all the change web.config manually, not a plugin.
My proposed redirect is this;
<rule name="test" stopProcessing="true"> <match url="^/category/name-of-category/$"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Redirect" url="https://www.name-of-website.co.uk/particular-page.asp"/> </rule>After I wrote this, nothing happens, so im guessing its clearly not being picked up. If anyone can point me into the right direction of getting it solved, i would be grateful. Thanks
-
Hi there,
We can’t help directly because we don’t host your site on our WordPress.com managed hosting. As a result, we can’t take a closer look at your site.
Instead your host uses the open-source variant of the WordPress platform (sometimes called “WordPress.org”) which functions differently than what we offer here on WordPress.com. Specifically because we are a managed hosting provider, we do not have a way to create this kind of custom redirect and would not be familiar enough with the process to advise you.
The good news is that help is available here at the open-source WordPress forums: https://wordpress.org/support/forum/how-to-and-troubleshooting/
The folks in that forum are more familiar with these kinds of issues and are in the best position to help. Thanks!
-
- The topic ‘Redirects – Web.config file – Windows Server’ is closed to new replies.