Directory / Alias with domain

-3

Hello, I have a domain link

I want to make sure that when you enter the link redirect to / new and not appear in the url that is in new, has something that I'd like to do in php, like phpengine , rule?

The problem is that I could not migrate a wordpress that is in / new that buga every page, so I want to migrate it by name in the domain (gambiarra)

    
asked by anonymous 21.12.2015 / 19:37

1 answer

1

See if this helps you ...

Step 1 - The panel. Access the WordPress dashboard in your account. Look for the menu on the left side where "Settings" is written. Go to "Blog Address (URL)" where you can determine how we want to open the blog, which is the main address to use to access your pages. Above you always use the directory address to access your account, but underneath you can choose the primary domain. So where is "Blog Address (URL)" leave only the main address. Scroll the page and save the changes.

Step 2 - Modifying the Index.PHP File It's going to get a little more complicated now. In the "wordpress" folder that you have installed on your hosting service, there is a file called "INDEX.PHP.You may even have it backed up on your PC.Save it and open it in Notepad to see the code- source. There is a line that looks like this: require ('./ wp-blog-header.php'); Change it to: require ('./ wordpress / wp-blog-header.php'); Save with the same name overwriting the old file. Go back to the hosting directory and upload this file outside the "wordpress" folder in the main public folder of your domain. Ready. Now your blog is already redirected to the main URL outside the directory.

source: br .forums.wordpress.org

    
21.12.2015 / 20:17