Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 39301

Noumaan Yaqoob on "removing wordpress from my url"

$
0
0

VictoriaPL, first thing you need to do is to login to your website and go to Settings > General page.

There you will see two settings. WordPress Address (URL) and Site Address

Your WordPress Address should be: http://www.fashionandblogger.com/wordpress

You need to change site Address (URL) to your main site like this:
http://www.fashionandblogger.com/

Save your changes. Don't worry if you get an error message.

Open Filezilla and connect to your website. Go to wordpress directory and copy index.php and .htaccess files and paste them to the root directory which is where you want your website to be i.e. one directory above wordpress.

If you can not see .htaccess file then click on Server in Filezilla's menu bar and then click on "Force server to show hidden files".

Referesh wordpress directory. If you still can't see the .htaccess file then you probably don't have it. So you can only copy the index.php file.

Once you have copied index.php and .htaccess files to the root directory, Edit the index.php file in the root directory by opening it in a text editor.

Change the line that says:

require('./wp-blog-header.php');

to the following:

require('./wordpress/wp-blog-header.php');

Save changes and upload the file back to the server.

Now you can manage your website from /wordpress/wp-admin/ section but your main site will be displayed on your main URL.

(source: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)


Viewing all articles
Browse latest Browse all 39301

Trending Articles