Home Forums WordPress Plugins Hide My WP urls for certain pages are wrong

This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1015
    SolPal
    Post count: 9

    See example below of URLs being changed incorrectly:

    I have a link that should link to:
    http://www.mydomain.com/slugx-xx-slugy/family-mediation/

    But after enabling HMWP, the url changes to a page that does not exist:
    http://www.mydomain.com/slugx-xx-slugy/family-filetion/

    basically anytime it finds the word in a url: mediation, it changes is to filetation, is this a bug?

    Thanks

    #1034
    Hassan
    Post count: 955

    It seems you use mediation in Replace in HTML field. When you use Replace in HTML make sure you use the most longest sting. For example in order to change:
    class=”mediation” to class=”filetation” it’s better to replace “mediation” (or =”mediation”) to “filetation” (or =”filetation”) and not just mediation to filetation. So it doesn’t make problem with other occurs.

    There’s another possibility if you use custom path for wp-content (via wp-config not HMWP). However, I don’t think you use it.

    #1052
    SolPal
    Post count: 9

    it seems to me like one of the rewrites specifically the line below is changing any link on my website that has the word media in it like in (mediation) to (filetation)

    RewriteRule ^file/(.*) /media/$1 [QSA,L]

    how do I disable or fix this issue?

    Thanks

    #1063
    Hassan
    Post count: 955

    Do you use a custom folder for wp-content/uploads ?

    In this case you can leave New Upload Path blank.

    PS:
    Your mentioned rule just redirect (rewrite) addresses like: domain.com/file/1.jpg to domain.com/media/1.jpg. It does nothing with changing source code. Instead, replace-related tasks are done by HMWP itself.

    • This reply was modified 9 years, 7 months ago by Hassan.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.