• Resolved tinevdh

    (@tinevdh)


    I found out yesterday that when you subscribe to my blog (www.tineathome.com), you’ll get redirected to tineathome.com/?subscribe=success#blog_subscription-2. Unfortunately, that seems to cut my site in half, and you’ll only see the bottom part of my website instead of the whole page.

    Is there any way to remove #blog_subscription-2 from the url so that they’ll just get redirected to the main page?

    Thanks!

    https://www.ads-software.com/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That ID is added there so your readers can read the message that is displayed in the Blog Subscription widget:

    “An email was just sent to confirm your subscription. Please find the email now and click activate to start subscribing.”

    If they were redirected to the top of the page, they might not know that they have to perform one additional step before to be subscribed.

    Still, if you’d like to remove this ID from your URLs, you should be able to set up a redirect rule in your site’s .htaccess file.

    I’d love to set this up as well, so that when someone subscribes to our blog they redirect to a predefined “Thank you!” page. Can you give any help on what code to put into the .htaccess file?

    I’m using a multisite install, which also makes things more complicated. I’ve searched online and found several different .htaccess tutorials, but I can’t seem to get mine set up quite right.

    Currently I have:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com [NC]
    RewriteRule ^/(.*)\?subscribe=success(.*)$ https://domain.com/subscribe/thank-you [R=301,L]

    but it’s not working. (Of course I substitute our domain name for “domain”.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change redirect url?’ is closed to new replies.