• Resolved Unstable one

    (@sagartupe)


    I don’t when this started but in last two days I have noticed that all my url converted from mysite.com to mysite.com/

    Now problem is whenever I visit url
    /plc/1336

    It automatically redirect to
    /plc/1336/

    ie slash at the end.

    This increases my load time.
    I have confirmed this running test on GT matrix and pingdoom.
    The first redirect consume seconds, this is very strange.
    I have lasted astra theme installed with following plugin
    Cloudflare free cdn n ssl,Wp super cache, yoast SEO, ascy.javascript and auptomise.

    Please help me to fix it

    • This topic was modified 5 years, 8 months ago by Jan Dembowski.
    • This topic was modified 5 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    This “started” ages ago. It’s been the default behavior for as long as I’ve been aware of it, several years at least. I don’t know the reasoning behind this, nor how to prevent it. My advice is to learn to live with it by ensuring all of your permalinks always have a trailing slash. It should help with redirect times if you add a .htaccess rewrite rule that appends the slash before WP gets called in order to avoid loading the WP environment multiple times. Be sure you append to the path only as needed and not to a query string, file, or skip link.

    Thread Starter Unstable one

    (@sagartupe)

    @bcworkz
    Thank very much. Yes I noticed that most of searches in Google has trailing slash at the end.
    So I’m okay with this pattern.
    Is there any difference between in loading time of page speed if use redirection plugin and .htaccess

    Moderator bcworkz

    (@bcworkz)

    It depends on how the plugin works. If it adds a rule to .htaccess, then no (unlikely). If it’s hooked into WP and sends a Location: header or calls wp_redirect() or something, then yes. Depending on the server and host, this still may not be all that much longer. But longer it would be.

    I’m unsure of the correct rule, but it should at least be a local rewrite that does not include the domain in the rewritten destination because a domain in the destination generates a new request which takes longer.

    Thread Starter Unstable one

    (@sagartupe)

    @bcworkz thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect from url to url/ – increase load time’ is closed to new replies.