You just set the WordPress directory in your WP General Settings to your top-level URL (www.site.com/), then copy index.php to the root directory of your site and modify it to load content from your actual wp directory.
Step by step instructions are here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
I did this for my personal web site: http://dannythorpe.com. The WP files are actually located in a subdir of the web root (public_html), not the web root dir.
No URL rewriting is required!
Related Posts:
- Use a template file for a specific url without creating a page
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Override default url for author pages?
- Multiple endpoints to same page
- How to show the same content on multiple URLs?
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- How to create a specific frontend URL (not a Page) from a theme or plugin?
- how to add prefix to post url structor only
- Why does wordpress still strip my query var?
- Hijacking the URL for filtering
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Passing & Reading URL Parameters with URL re-writing
- Add_query_arg + two times the same argument?
- WordPress 404 unless there is a space in url
- Change default URL of image attachment
- Prevent WordPress from automatically correcting URLs
- Taking a value from PHP_URL_PATH won’t work after WordPress 5.5 update
- Display content according to current URL
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Change WordPress comments url / word
- Migrating a page to be an article
- WordPress removes spaces in URL on pagination
- How to get “extended” path info from URL in a plugin
- How to check current URL for endpoint in a template file?
- add_rewrite_rule not working for language specific characters
- Custom URL rewrite to specific page template
- Is there a way to create alias without using htacess, permalinks or delving into code?
- 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
- WordPress redirects non-existing url to existing ones – how to disable
- How to rewrite url wordpress?
- How to building pretty URLs to reflect category hierarchy?
- Adding special characters to slug?
- Wildcard forward all posts and pages with few exceptions
- Help with Rewrite Rule for Custom Post Type with Query String
- Translate custom post type and taxonomy slug in URL?
- A clean custom rewrite rule for weekly archives
- Right url for custom post type
- Preserve old website URL structure after migrating to WordPress
- Change pagination url format
- Add language prefix to permalinks
- How to redirect large amount of URLs?
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- Per Page Permalink Structure for Page Post Type
- Custom category URL rewriting
- ngnix Url rewrite doesn’t work
- Understanding the query string after .htaccess rewrite
- Rewrite /category/cars into /topics/cars
- URL renaming issue
- Removing “www” from a site URL
- Adding a query string to only one page url
- wordpress url correction
- How to create cutom link for page
- Weird characters behind every single link and images
- How to use wp rewrite to hide form action url?
- How do I get posts to appear at mydomain.com/blog?
- get variable from url?
- remove archive from url :: marketpress
- add_rewrite_rule with optional parameters
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- How to change search page url so that it still returns a page when there’s no search query specified?
- Add prefix to url, but products not showing in page SHOP
- Append a parametter at first or last to a certain URL
- SEF add_rewrite_rule & add_rewrite_tag not working
- Allowing multiple URLs for same Post
- How to create dynamic URLs on WordPress?
- Dynamic URL with rewrite rule not working
- 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
- Change URLs in default WordPress slider to relative from absolute
- Root-relative paths being rewritten on ‘Edit Page’ [closed]
- Get custom posts by segment of the URL
- Get parameters and custom page template
- Direct Dynamic URL in root to a location within template
- 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
- Remove Page Slug from URL
- How to retrive previous Domain URL in Wp
- How to create short urls for sharing and downloadable content?
- URL Rewrite for CPT single posts
- Is it possible to rewrite a page url Without setting the permalinks to Post Name?
- How to stop WordPress creating URLs that don’t exist
- 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?
- How to exclude my home page from url of my internal pages?
- Lost WordPress website access after changing URL [closed]
- Remove url parameter using wordpress
- Switch WordPress to non-absolute links? [closed]