G
G
Grisha Nikolsky2015-10-22 19:01:20
WordPress
Grisha Nikolsky, 2015-10-22 19:01:20

How to remove /wordpress from website URL?

Hello! There was such question:
How to remove from URL /wordpress?
I have a site mebel.rf. To get to wordpress content, I need to write furniture.rf/wordpress.
How can you get rid of this and switch to wordpress automatically when you visit furniture.rf?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2015-10-24
@VoxelGod

Copy from the WordPress index.php and wp-config.php folder to the root. In index.php, the last line should be:
In wp-config.php add:

define( 'WP_HOME', 		'http://'.$_SERVER['HTTP_HOST'] );
define( 'WP_SITEURL', 		'http://'.$_SERVER['HTTP_HOST'].'/wordpress' );

Read more: https://codex.wordpress.org/Giving_WordPress_Its_O...

T
TigerM, 2015-10-22
@TigerM

Move the content of wordpress to the root directory of the site - where the wordpress directory is now.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question