- This topic is empty.
-
AuthorPosts
-
September 21, 2015 at 8:11 pm #208510chauhanheenaParticipant
Hi,
I have installed wordpress in its own directory ‘wordpress’. Now i want to change my website url from http://www.horizonforum.in/wordpress to http://www.horizonforum.in
I followed the below steps as mentions in http://codex.wordpress.org/Giving_WordPress_Its_Own_DirectorySteps followed:
Using a pre-existing subdirectory install
If you already have WordPress installed in its own folder (e.g., http://example.com/wordpress), then the steps are as follows:Go to the General panel.
In the box for Site address (URL): change the address to the root directory’s URL. Example: http://example.com
Click Save Changes.
Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress (wordpress in our example) directory into the root directory. 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. (IM NOT USING PERMLINKS AND DONTHAVE .HTACCESS and .WEBCONFIG).
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.After doing all these. when i check horizonforum.in,
the css is not applied to the website. when i see the source code, the link tag for css is<link rel=’stylesheet’ id=’http://horizonforum.in/wp-content/themes/modern-magazine/fw/core-package/css/global/fw-util.css-css’ href=’http://horizonforum.in/wp-content/themes/modern-magazine/fw/core-package/css/global/fw-util.css?ver=4.3.1′ type=’text/css’ media=’all’ />
It should have been
<link rel=’stylesheet’ id=’http://horizonforum.in/wordpress/wp-content/themes/modern-magazine/fw/core-package/css/global/fw-util.css-css’ href=’http://horizonforum.in/wordpress/wp-content/themes/modern-magazine/fw/core-package/css/global/fw-util.css?ver=4.3.1′ type=’text/css’ media=’all’ />for the css to be applied. How do i solve this.
September 22, 2015 at 6:32 am #208522SenffParticipantDouble-check and make sure that the WordPress Address is set to http://horizonforum.in/wordpress and the Site Address is set to http://horizonforum.in — maybe you set it to the other way around?
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.