How to point a domain name to WordPress Homepage

Source: Internet
Author: User

Strong =, it is really difficult to express difficulties if you don't write it out.

VPs is activated in the afternoon. Although an IP address is blocked, another IP Address can log on normally. So I quickly built WordPress on the host, imported the original things, looked at the tutorial, and installed several plug-ins. Then, I began to bind the domain name to the host's IP address. From then on, it was a twists and turns =

After all, it is the first time you buy a domain name on godadty, and it is not set .. Although I read some methods on the Internet, the settings panel in godady mentioned here is a little different from the current ones .. In a word, I didn't understand it clearly. = I set it wrong. Then I changed the site address directly in the admin panel of woedpress, but the domain name resolution was not successful at this time, you can't get yourself into the panel, and you can't just delete all WordPress connections to the database. Then I went over again and tried again after the domain name was resolved.

The domain name resolution is still smooth, probably catching up with the time for the DNS server to refresh. The domain name will be successfully resolved immediately after it is fixed on his dad .. I am so happy now... The domain name only points to the host, that is, the main directory, but entering the Homepage Address into also too annoying. How can I enter my domain name directly? After searching for a long time on the Internet, I found an article saying that I only need to move the index. php and. htaccess files under the/WordPress directory to the root directory, and then find them in the index. php file.


Modify this line:


However, my WordPress directory does not have any. this file hraccess is troublesome, so I found it on the Internet and found that it was automatically generated by WordPress. If this file is not generated for many reasons, upload allows you to install the WordPress files to a subdirectory on the official WP Codex, but have your blog exist in the site root. ", and the method is exactly the same as I mentioned above, but also mentioned that" if you are not using pretty permalinks, then you may not have.HtaccessFile. ", this file is generated by pretty permalinks. Didn't I use this pretty permalinks?

Then I followed the official Codex solution. Without the. htacess file, I created a new one in the root directory. Its content is as follows:

# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPress

Then I checked the permissions of each file in the/WordPress directory and set it to 660 with chomd. Follow the instructions above
"In the box for WordPress address (URL): Change the address to the new location of your main WordPress core files. Example:
In the box for site address (URL): Change the address to the root directory's URL. Example:"
There should be no problem here, and it turns out that it still doesn't work =,
Is there a more complicated reason, such as the Apache problem? This is not easy .. I have no idea about this .. At this time
I found the original index.html file under the main directory and found the content in it:

</p><p>The web server software is running but no content has been added, yet.</p></body>

Isn't this the prompt I encountered when entering my domain name using a browser? =

I guess, but the browser has read the index.html file first, and the copied index. the PHP file was not read, but I did not expect it to be so smooth. I changed the HTML file name and entered my domain name in the browser again, I found that I jumped to my homepage. So far, I finally successfully resolved the domain name problem ~~ I am so happy =

Now you can access this site directly with or the second-level domain name ~~

Original article, reprinted Please note:Reproduced from genuinelx's blog

How to point a domain name to WordPress Homepage

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: 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.