Copy the index.php and .htaccess file(Just copy it , do not move it ) from myblog directory to root directory.
Open index.php file in any text editor and find the following code in the file.
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
Replace it with the following code and save the file.
/** Loads the WordPress Environment and Template */
require('./myblog/wp-blog-header.php');
Go to the General Settings page from settings section in the back end and change Site Address (URL) field to http://wwww.mysite.com as shown below in screenshot.
You can get more information on this settings from this page.
You can access backend of site from this URL : http://www.mysite.com/myblog/wp-admin
If you face any problem then let me know..
Related Posts:
- redirect 301 old url to new url
- Custom URL rewrite to specific page template
- Is there a ‘rake routes’ for wordpress?
- How to rewrite url wordpress?
- Add language prefix to permalinks
- React Router with WordPress
- Two sets of url one content?
- Get logged in username in wordpress url
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- WP returns to domain root instead of siteurl
- How to retrive previous Domain URL in Wp
- Lost WordPress website access after changing URL [closed]
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Override default url for author pages?
- Getting the Site URL Including the Front Base
- Multiple endpoints to same page
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- how to add prefix to post url structor only
- Why does wordpress still strip my query var?
- Appending numbers to url do not break the link
- Hijacking the URL for filtering
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- custom htaccess rewrite rule for page
- Passing & Reading URL Parameters with URL re-writing
- How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?
- Add_query_arg + two times the same argument?
- WordPress 404 unless there is a space in url
- Woocommerce different URL for every table placed in the restaurant
- Change default URL of image attachment
- Prevent WordPress from automatically correcting URLs
- Display content according to current URL
- Change WordPress comments url / word
- Migrating a page to be an article
- How to get “extended” path info from URL in a plugin
- Custom URL routing based on cookie value
- How to check current URL for endpoint in a template file?
- add_rewrite_rule not working for language specific characters
- Define orderby in url
- Alias ‘wp-content’ directory to something shorter (framework?)
- WordPress .htaccess – route other URLs to another app
- open all .docs in word online
- How to add custom variable in url without redirect?
- Adding pretty query parameters
- Changing RSS feed URL structure
- How to change the main site url on a multisite installation (network)?
- Append a query string to the end of every URL
- Preserve Domain Alias
- How to building pretty URLs to reflect category hierarchy?
- How do I retain url parameters the entire time a user browses my site?
- Wildcard forward all posts and pages with few exceptions
- Help with Rewrite Rule for Custom Post Type with Query String
- Right url for custom post type
- Preserve old website URL structure after migrating to WordPress
- How to redirect large amount of URLs?
- How to achieve my custom post url structure?
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- Per Page Permalink Structure for Page Post Type
- Changing URL scheme, mod_rewrite not helping
- ngnix Url rewrite doesn’t work
- Understanding the query string after .htaccess rewrite
- Is WordPress API visible from PHP file called in htaccess
- URL renaming issue
- Removing “www” from a site URL
- Redirect htaccess [closed]
- Replace “http://localhost:8888/” by website URL in WordPress
- Weird characters behind every single link and images
- how to move another machine or server without dealing with IP
- How do I get posts to appear at mydomain.com/blog?
- get variable from url?
- Custom route and extract data from slashes and parameter
- How to change search page url so that it still returns a page when there’s no search query specified?
- Multisite problem with unexisting paths to CSS etc
- SEF add_rewrite_rule & add_rewrite_tag not working
- Allowing multiple URLs for same Post
- How to create dynamic URLs on WordPress?
- Problem building an url with argument
- Multiple permalink with and without category for same post
- There is how to change url domain on some posts?
- How do I rewrite URL that has custom parameter
- Param causing 404
- Homepage cannot be found
- How to change URL of my pages?
- Get custom posts by segment of the URL
- Use Parent Pages for URL Structure without Landing Page
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Error 404 wordpress redirecting URL
- Remove Page Slug from URL
- How to create short urls for sharing and downloadable content?
- URL Rewrite for CPT single posts
- How to stop WordPress creating URLs that don’t exist
- How to make a custom route with any-string-part/number-part pointing to an existing page?
- Rename page URL
- Can I exclude a single URL from a rewrite plugin?
- How can i maintain permalink structure and avoid a 404 error when loading external content?
- redirect word-press page with page values
- Remove url parameter using wordpress