Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:50:32+00:00 2026-05-30T10:50:32+00:00

I have made a website that has 2 WordPress installs one for English language

  • 0

I have made a website that has 2 WordPress installs one for English language and one for Irish language. They are identical setups with same categories, page names etc.

I have ‘English | Irish’ links in my header on each page.

When you are on the english page and you click the ‘irish’ link at top I would like it to take you to the same page but on the Irish site.

The link structure is shown below:

http://mysite.com/english/about

http://mysite.com/irish/about

So I really only need ‘english’ in the url to be replaced by ‘irish’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:50:33+00:00Added an answer on May 30, 2026 at 10:50 am

    Their are standard wordpress plugins that handle multi-language issue’s for you. But if you whant to stay with you choise this script does exactly what you asked.

    $url = 'http://www.mysite.com/english/about/me/test';
    
    $parsedUrl = parse_url($url);
    $path_parts = explode("/",$parsedUrl[path]);
    
    $newUrl = $parsedUrl[scheme] . "://" . $parsedUrl[host];
    foreach($path_parts as $key =>$part){
        if($key == "1"){
            if($part == "english") $newUrl .= "/irish";
            else $newUrl .= "/english";
        } elseif($key > "1"){
            $newUrl .= "/" . $part;
        }
    }
    
    echo "Old: ". $url . "<br />New: " .$newUrl;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a website for a 'walking challenge', which has a table that
I have a website that I made and I am planning to redo it.
I have a website made with CakePHP 1.3.7. This website has it's own login
I have a website (http://nottingham.subverb.net) that is mainly made up of messy procedural code
I have an ASP.NET website that has been deployed since 2008 with plenty of
I made a website that has a hierarchical structure and has search engine friendly
I made one website xyz.com using php codeigniter framework. This website has modules, so
We have a website made by Django. And there is no problem when access
I have made some screenshots of my website, and in internet explorer 6 my
I have made some screenshots of my website, and in internet explorer 6 my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.