WordPress on Index Page

If you upload your WordPress in a subdirectory ,e.g: yoursite.com/wordpress ,then all the urls will have something like this : yoursite.com/wordpress/yourpageurl. If you want to get rid of it then follow the steps below :

1. Open your index.php (create it if you don’t have it) and paste the following code into it.

<?php define('WP_USE_THEMES', true);
require('./DIRECTORYNAME/wp-blog-header.php'); ?>

2. Go to dashboard Settings >> General

3. Now change the Site Address (URL) to your site url & save.

Share on TumblrShare via email


Leave a Reply

xD ^_^ >_< ;) :| :x :love: :cry: :P :D :?: :/ :-o :) :( :$ 8)