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

  • Home
  • SEARCH
  • 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 9299941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:40:25+00:00 2026-06-18T22:40:25+00:00

I did mistake and didnt change my root URL when started work with WordPress,

  • 0

I did mistake and didnt change my root URL when started work with WordPress, for now I have my blog with about 30 pages and I need change root URL.

  • My wordpress located:

    C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress

  • My blog stays as theme under:

    ...\htdocs\wordpress\wp-content\themes\myblog

  • My domain URL:

    http://www.myblog.co.il/wordpress/wp-admin

  • index.php located:

    ...\htdocs\wordpress\wp-content\themes\myblog\index.php

when I run my main page aka index.php I see http://www.myblog.co.il/wordpress
therefore all generated permalinks look like:
http://www.myblog.co.il/wordpress/?page_id=158 … .

The main quiestion is: How to change:

http://www.myblog.co.il/wordpress to ‘http://www.myblog.co.il/‘ in order to change automatically all permalinks? a.e. http://www.myblog.co.il/?page_id=158 …

I saw enough solutions how to do that from start but not when blog is ready.

Please, help me to find proper solution.

Thanks,

  • 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-06-18T22:40:26+00:00Added an answer on June 18, 2026 at 10:40 pm

    Well first of you’ll have to configure a virtual host in Apache to match the domain to your htdocs\wordpress folder and not just to \htdocs. You can read more on vhosts in apache here.

    Since WordPress saves all URLS in their absolute form to the database, you’ll have to manually fix this by replaceing the URLS in the database. Assuming you’re running MySQL and the current URL to your blog is http://www.myblog.co.il/wordpress, you can use these queries:

    UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.myblog.co.il/wordpress', 'http://www.myblog.co.il');
    UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.myblog.co.il/wordpress', 'http://www.myblog.co.il');
    UPDATE wp_options SET option_value = 'http://www.myblog.co.il' WHERE option_name = 'home' OR option_name = 'siteurl';
    

    this does not only fix hardcoded links but it also fixes custom links inside the content of your pages and posts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did serious mistake when I was doing some project and now I have
Sorry, I'm sure making a silly mistake, but did not work out. I'm compiling
Did you ever have the following situation: you need to store information, but a
I have an iphone3G. I did the mistake to connect it to itunes and
sorry Friends i did a mistake. I have did this mistake again. am really
I did a mistake importing in an import to some SubVersion repository, and I
Hello I did a mistake by setting UTF8 on a website that was on
This seems very foolish mistake, I just did a git stash pop on a
Did about 30 minutes worth of searching, found lots of relevant info, but none
I did the mistake of using fflush(stdin) to flush the remainings of the stdin

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.