• Resolved agizzie

    (@agizzie)


    Hi,

    Great plugin, it’s very easy to use and works well. However, I have one URL that when directed has an extra forward slash in it. All other URLs which are being directed ‘from’ and ‘to’ the same sites work. It’s just this one particular URL. I have checked, ‘ignore case’, ‘regex’ & ‘ignore slash’.

    Have tried source URL:

    /contact-form
    ^/contact-form
    full URL

    I can’t work it out, any suggestions as to why would be appreciated.

    Thanks in advance.

    SOURCE URL:
    https://monkcase.com/contact-form

    TARGET URL:
    https://mnkcase.com/contact-from

    BUT it goes to:
    https://mnkcase.com/contact/-from
    ^ Why this extra / ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Godley

    (@johnny5)

    The plugin only does what you tell it to do – it never adds anything extra. If you have checked regex and it isn’t a regex then that is likely the cause of the problem

    Thread Starter agizzie

    (@agizzie)

    Hi John,

    Thanks for getting back to me.

    I have tried with and without ‘regex’ and issue still exists. I have also tried, 301 or 308 again, with and without ‘regex’ but again same issue.

    I can’t work out why it is only happening to this one particular page, the URLs have the ‘-‘ betweeen the last two words after the domain eg contact-from and this is where the extra ‘/’ is turning up. However, contact-form is not the only page like this. I have a few including, privacy-policy, delivery-policy, and these work fine.

    I have included a link to a couple of screen shots.

    Any suggestions as to why will be appreciated. Thanks

    Regards,

    A

    View post on imgur.com

    View post on imgur.com

    Plugin Author John Godley

    (@johnny5)

    The screenshots look the same.

    You do not need to use a regex for this at all.

    Do you have any other redirects that might be affecting this? When you look in the redirect logs, what redirect is shown as being the one that did the redirect?

    Maybe another plugin running?

    Thread Starter agizzie

    (@agizzie)

    Hi John,

    Thanks again for getting back to me.

    The probably was the trailing ‘/’ at the end of the permalinks.

    If, …/contact-from/ was the source it added the extra ‘/’
    ie ‘/contact/-from’

    but if, …/contact-form was the source it went to the correct target, …’/contact-from’

    I’ve worked it out, I have 2 similar redirects which where affecting each other.

    …/contact/
    …/contact-form/

    I changed the name of the page ‘…/contact-form’ to ‘…/contacts-form’ and redirected that to …/contact-form and it worked.

    Thanks for your time.

    A

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirected URL has extra forward slash /’ is closed to new replies.