• First post!

    I run a community website using WP.

    I want different organisations to use the website for their own clubs/societies.

    Many already have their own webpages which are not well maintained.

    Ideally I would like to set up separate pages for these clubs/societies on the community website, and have their original urls redirected to the appropriate subpages.

    I have already managed to redirect a url to the main page.

    How do I redirect an external url eg https://www.cricketclub.org.uk to https://www.mysite.org.uk/cricketclub?

    Thanks,
    Lindsay

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Lindsay! Great question. There’s a couple of ways to accomplish this that should be pretty easy to set up.

    This will be especially easy if the hosting provider for the external URL has a simple redirect tool you can use in their control panel, which can be used to redirect the whole domain to the club’s page URL on your site. Check the provider’s help articles to find out if that is an option.

    If the provider does not have a simple way to do this, you can also use a 301 redirect in the external site’s .htaccess file to make this happen. Here’s a handy guide to that process: https://css-tricks.com/snippets/htaccess/301-redirects/

    Note that using a redirect will cause the URL to change to your destination site in the browser. Keeping the original URL after the redirect is a more complicated question, but is still possible in some ways.

    Thread Starter southoftheborder

    (@southoftheborder)

    I’m glad you said it should be easy…..

    I’m using a domain I own to try this. I have set up a redirect to the subpage on my WP site, but its not working.

    The htaccess entry on my domain is:
    RewriteRule ^/?$ “http\:\/\/community website\.org\.uk\/cricketclub\/” [R=301,L]

    But it takes me to the main page.

    If you can share the specific URL you’re redirecting from, that will help because then it can be inspected in the browser. Looks like you’re changing the URL in the code you include above, which makes it harder to tell what’s happening.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect External url to WP site subpage’ is closed to new replies.