Custom pages redirect error of non www to www of wordpress site developed from m
-
I have added this code in
web.configof my wordpress site developed from azure:<rule name="Redirect to WWW site"> <match url=".*" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_HOST}" pattern="^(www.)(.*)$" negate="true" /> </conditions> <action type="Redirect" url="http://www.{HTTP_HOST}/{R:0}" redirectType="Permanent" /> </rule>This perfectly works for redirection like homepage, default wordpress url(login.php, wp-admin). Examples:
1. If I go to link poudelmadhav.com it redirects to http://www.poudelmadhav.com
2. If I go to link poudelmadhav.com/wp-login.php it redirects to http://www.poudelmadhav.com/wp-login.phpBut this doesnot work in custom pages of wordpress that I have created after installing wordpress. For examples:
1. If I want to go poudelmadhav.com/contact it redirects to http://www.poudelmadhav.com not http://www.poudelmadhav.com/contact
2. If I want to go poudelmadhav.com/about-me it redirects to http://www.poudelmadhav.com not http://www.poudelmadhav.com/about-meHow can I solve this please help me.
-
Hi there,
It looks like you are using WordPress.ORG for your website(http://www.poudelmadhav.com) and also, it is hosted outside WordPress.COM.So i am sorry… but you have posted your issue in the wrong forum. This forum only supports the sites hosted on WordPress.COM and not elsewhere.
Both(WordPress.COM and WordPress.ORG) are different products. You can find out the differences between them here: https://en.support.wordpress.com/com-vs-org/
To get help, please post your question on the WordPress.ORG support forum: https://wordpress.org/support/
Hope your issue gets resolved ASAP.
Thanks! -
Hey there, you’ve posted your question in the support forums for sites hosted by WordPress.com, but your above site appears to be using the standalone WP (org) software.
Standalone WP and WordPressdotcom (where we are) are different entities with different documentation and support forums; more information about the differences can be found here: https://en.support.wordpress.com/com-vs-org/
You can find all the support information for sites using the WP (org) software at https://codex.wordpress.org/Main_Page and at https://wordpress.org/support/ If you don’t have a username on the ORG forums, you can register one on that page.
Good luck and best wishes.
-
Thank you for the suggestions. Now, I have got the answer. Actually, I have two rules but I have not written here the first rule. I have written here the last rule. I have reversed the first and last rule and my problem solved. Thanks to Aron…
http://stackoverflow.com/questions/43715765/custom-pages-redirect-error-of-non-www-to-www-of-wordpress-site-developed-from-m
- The topic ‘Custom pages redirect error of non www to www of wordpress site developed from m’ is closed to new replies.