Support » Fixing WordPress » About rewrite rule

  • Hi,

    We want to do the rewrite
    from
    https://www.xxx.com/Survey/mod/feedback/view/41
    to
    https://www.xxx.com/Survey/mod/feedback/view.php?id=41

    So we are trying as below but this is not working.

    <rule name="Rewrite to view.php">
    <match url="^Survey/mod/feedback/view/([0-9]+)" />
    <action type="Rewrite" url="Survey/mod/feedback/view.php?id={R:1}" />
    </rule>

    We are using WordPress for http://www.xxx.com

    Inside this we created a folder Survey and for this we are using Moodle

    We have placed the web.config file in the root of http://www.xxx.com.

    Please suggest whether the above issue because of the wordpress source

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!

    I suggest not working in the web.config if you do not know 100% sure what you’re doing!

    try https://en-gb.wordpress.org/plugins/redirection/. Works pretty good and I think it can help you with this problem!

    Thread Starter shanthini

    (@shanthini)

    Hi,

    We are using CDN for our website. We set the configurations as suggested by total cache plugin

    But when checked using GTmetrix this is throwing errors against – Page speed -Remove the following redirect chain if possible

    Our hosting support says that – you have to set the rules to exclude cdn URLs in web.config because default WordPress set the rules.

    Please suggest how can we fix this

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘About rewrite rule’ is closed to new replies.