I have uploaded a theme in WordPress but the theme is visible only in abc.com/wp. How can I showcase the same thing in abc.com.what did I do wrong?
I have uploaded a theme in WordPress but the theme is visible only in abc.com/wp. How can I showcase the same thing in abc.com.what did I do wrong?
Go to the General Screen.
In WordPress address (URL): set the address of your main WordPress core files. Example: http://example.com/wordpress
In Site address (URL): set root directory’s URL. Example: http://example.com
Click Save Changes. (Do not worry about the errors that happen now! Continue reading)
Now move your WordPress core files (from root directory) to the subdirectory.
Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address). 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. For the index.php file the instructions remain the same, copy (don’t move) the index.php file to your root directory. The web.config file, must be treated differently than the .htaccess file so you must MOVE (DON’T COPY) the web.config file to your root directory.
Open your root directory’s index.php file in a text editor
Change the following and save the file. 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’ );
Login to the new location. It might now be http://example.com/wordpress/wp-admin/
If you have set up Permalinks, go to the Permalinks Screen 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.)
Except point no 5- move your files from root to sub folder … since u already have WordPress installed in sub folder
May 8, 2018
0 responses on "I have uploaded a theme in WordPress but the theme is visible only in abc.com/wp. How can I showcase the same thing in abc.com.what did I do wrong?"
0 responses on "I have uploaded a theme in WordPress but the theme is visible only in abc.com/wp. How can I showcase the same thing in abc.com.what did I do wrong?"