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