Title: String
Last modified: October 15, 2021

---

# String

 *  Resolved [Rik0399](https://wordpress.org/support/users/rik0399/)
 * (@rik0399)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/string/)
 * Hi John,
 * quick one if I may, please …
 * Whenever a and active link is selected i.e. …
 * /this-is-sleep/
 * it’s doing this …
 * /category/shopping/category/news-articles/category/news-articles/category/news-
   articles/category/news-articles/category/news-articles/category/news-articles/
   category/news-articles/category/news-articles/category/news-articles/category/
   news-articles/category/news-articles/category/news-articles/category/news-articles/
   category/news-articles/category/news-articles/category/news-articles/category/
   news-articles/category/news-articles/gifts-news/
 * I have tried pretty much every which way to stop this, checked the log but cannot
   see why the link is being redirected to the above and not going to /this-is-sleep/?
 * What is the sequence to force it to the desired url?
 * Tried : /this-is-sleep/(.*)
 * Any ideas, please?
 * Hope that makes sense 🙂
 * Many Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/string/#post-14975651)
 * It’s not super clear, no. What redirect have you created?
 *  Thread Starter [Rik0399](https://wordpress.org/support/users/rik0399/)
 * (@rik0399)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/string/#post-14976047)
 * Hi John,
 * The problem I’m facing is that I’m seeing a ton of 404’s every day.
 * As an example, this is a link to a listing on my site : “/this-is-sleep/”
 * This is what is happening > “/this-is-sleep/?admin.php”
 * Someone or something is adding spurious strings?
 * So I created :
 * /this-is-sleep/(.*) to omit the latter part and force it to go to : /this-is-
   sleep/
 * In many cases, I’m seeing the following which is overriding the initial path 
   to a listing URL even though there is no redirect to it?
 * /category/shopping/category/news-articles/category/news-articles/category/news-
   articles/category/news-articles/category/news-articles/category/news-articles/
   category/news-articles/category/news-articles/category/news-articles/category/
   news-articles/category/news-articles/category/news-articles/category/news-articles/
   category/news-articles/category/news-articles/category/news-articles/category/
   news-articles/category/news-articles/gifts-news/
 * Hope that clarifies the issue 🙂
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/string/#post-14976128)
 * I wouldn’t worry about spurious requests. Your pages will have the correct canonical
   URLs set, and that is what is important. Trying to chase down these things will
   be a neverending game of whac-a-mole that will provide no benefit to your site.
 * I don’t understand how the category URL is related to the redirect.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘String’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/string/#post-14976128)
 * Status: resolved