Connect the blog to the site
-
I need to connect the blog to the ready site, the problem is, I don't need wordpress to process the urls I already use in the project, for example, I have a search that I'm self-sustaining, and it's appropriate that the /search route would not work on wordpress'om.
Is there any way to do this, so it doesn't change the floor of the drive, and not for so long?
-
You need to put a wordpress in the cap, like,
wordpress
♪ From official https://codex.wordpress.org/%D0%A0%D0%B0%D0%B7%D0%BC%D0%B5%D1%89%D0%B0%D0%B5%D0%BC_WordPress_%D0%B2_%D0%BE%D1%82%D0%B4%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D0%BC_%D0%BA%D0%B0%D1%82%D0%B0%D0%BB%D0%BE%D0%B3%D0%B5 :- Set up a new catalogue in which you want to place WordPress files (in examples we use `/wordpress`).
- Go to the building lounge.
- In the field Address WordPress (URL): Change the address where WordPress files will be posted. For example: http://example.com/wordpress
- In the field Address of blog (URL): Change the address to the URL of the root catalogue. For example: http://example.com
- Press. Update the building. (Don't be upset about the mistakes and don't try to see your blog at this moment!)
- Transfer WordPress files to the new catalogue (Adres WordPress).
- Copy the index.php and .htaccess from the WordPress catalogue to the original catalogue of your website.
- Open the index.php file from the original catalogue in the text editor.
- Make the following changes and keep the file. Change the line that says:
require('./wp-blog-header.php');
by using the address of the WordPress catalogue:
require('./wordpress/wp-blog-header.php'); - Go to a new place. This may be http://example.com/wordpress/wp-admin/
- If you want to build permanent references, go to the Permanent References and update the template of Permanent References. WordPress will automatically update your file...htaccess if he has a file. If WordPress can't record it in your file...htaccess, he'll show you a rewritten rule so you can hand-cop it into your file.htaccess.