Mobile app version of vmapp.org
Login or Join
Yeniel560

: How to have my GoDaddy hosted domain name take me directly and automatically to my blog I have a website on GoDaddy. I have WordPress downloaded on a directory called blog. I would like so

@Yeniel560

Posted in: #Blog #Godaddy #Links

I have a website on GoDaddy. I have WordPress downloaded on a directory called blog.

I would like so that when some one types my website name it takes it to the blog, but at the moment I have to type /blog at the end of it.

Is what I want possible, if so how do I do it?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

1 Comments

Sorted by latest first Latest Oldest Best

 

@Tiffany637

You can either move it from the directory as mentioned, or you can keep it in the directory and have it appear in the root by doing a bit of tweaking as follows:


Go to the General panel.
In the box for Site address (URL): change the address to the root directory's URL. Example: example.com. Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your siteā€”the latter is probably named something like www or public_html. The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you'll have a web.config rather than a .htaccess file in your WordPress directory.
Edit your root directory's index.php.


Open your root directory's index.php file in a text editor
Change the line that says:
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
to the following, using your directory name for the WordPress core files:
require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );

Save the file.
Login to your site (if you aren't still already). The URL should still be example.com/wordpress/wp-admin/ If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)


More info here: codex.wordpress.org/Giving_WordPress_Its_Own_Directory

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme