Modified the WordPress installation directory, and then the article all appeared 404 error, How to break

Source: Internet
Author: User
Tags wordpress blog
I modified the WordPress installation directory myself, and then the article all appeared 404 error, How to break

The original WordPress installation address is HTTP://127.0.0.1/

I moved the installation directory to the UED directory, and now it's http://127.0.0.1/test/.

WordPress can access, but the article can not be accessed.

What to do?

Reply content:

I modified the WordPress installation directory myself, and then the article all appeared 404 error, How to break

The original WordPress installation address is HTTP://127.0.0.1/

I moved the installation directory to the UED directory, and now it's http://127.0.0.1/test/.

WordPress can access, but the article can not be accessed.

What to do?

WordPress article uses the complete URL, the article URL information is unloaded database inside, you this situation needs to replace the URL in the database, the HTTP://127.0.0.1/replaced with http://127.0.0.1/test/on it.

Configure the virtual directory, Apache for example:
ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:\wamp\www\ued" ServerName dev-ued.com ServerAlias dev-ued.com ErrorLog "logs/dev-ued.com-error.log" CustomLog "logs/dev-ued.com-access.log" common

Then modify host to point dev-ued.com to 127.0.0.1

127.0.0.1 dev-ued.com

WordPress installation After the address of the article and a lot of information is stored with the domain name. That is, the article address is an absolute path. For example, after I installed the first article is the Helloword database article address the default storage is: Http://127.0.0.1/?p=1
If your WordPress is placed under test then the database is stored in http://127.0.0.1/test/?p=1
So your visit must be 404.
The first is to execute the database command: You can baidu a bit of WordPress blog move, mainly divided into three kinds, change the domain name unchanged space, change the space unchanged domain name, change the domain name and change the space.

The second is: and the modification of rewrite

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.