Add the following to your .htaccess
, in between the <IfModule mod_rewrite.c>
:
RedirectMatch 301 /home /homepage
Redirect 301 / /homepage
However, as Omar suggested, you can change your homepage through your [dashboard] by doing the following:
- Go to Settings > Reading
- Under Front page displays, select A static page (select below)
- Next to Front page: select the page for your new homepage from the dropdown menu
- Click Save Changes
Related Posts:
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- Redirecting WordPress /.htaccess / HSTS / SSL
- RedirectMatch and Redirect interfering with each other
- Why specific file directory fails to redirect but its parent folder succeeds?
- https multiple redirects
- How to redirect URL with subfolder to the same URL but without subfolder?
- How can I replace my primary url globally with a parked one?
- Redirections and rewrites to subdomain
- reducing number of URL Redirects and increasing speed
- URL masking of subdomain to main domain using .htaccess
- Redirect old query string URLs to new add_rewrite_rule URL
- HTTPS to HTTP rewrite rules not working as expected
- ErrorDocument 410 gives me back a 302 header
- How to create multiple Rewrite-Rule for various site in single htaccess?
- Redirect only PDFs in different folders?
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- htaccess and redirect to new url using regex
- Redirect ignore last URL segment
- How to prevent automatic redirection of 404 errors and “incorrect” URLs?
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Disable WordPress URL auto complete
- Redirect user to original url after login?
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- Redirect entire website to a single page
- Disable ONLY URL auto complete, not the whole canonical URL system
- User redirect to destination URL after login
- Non-WordPress page in subdirectory under WordPress page
- Force HTTPS using .htaccess – stuck in redirect loop
- 301 redirect not working through .htaccess
- Site redirects to wrong url when saving settings
- Why does WordPress automatically redirect URLs with the parameter “name=” to a different page?
- How to setup 301 redirects for multiple query string URLs?
- How to redirect url requests to https? [closed]
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirecting old permalink to new one
- Index in root, wordpress in subdirectory
- Redirect www to non-www htaccess
- 302 redirect instead of 301 after switch to HTTPS
- Specific URL has 403 Forbidden status code
- How do I skip wordpress’s 404 handling?
- Stop unwanted WP redirection to new url
- Problem to redirect custom page using htaccess
- Redirecting to home-page when saving any edited code
- How does WordPress redirect to WooCommerce shop page? [closed]
- WP redirects all pages from new domain to old domain
- htaccess redirect not working
- htaccess wildcard redirect misses some URLs
- Random and Erroneous WordPress Redirect
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Redirect from https to http or from http to https? [closed]
- Redirect too many times htacces switching to https
- Redirect to https not working with .htaccess [closed]
- How to do 301 redirect to Sub page using htaccess file?
- add_rewrite_rule to pass entire path as a single parameter
- htaccess redirect – directory and subpages to a single page
- WWW to non WWW redirect effects on load speed
- Can WordPress redirect to a “similar page” in case of 404 error
- htaccess redirect dynamic posts
- Hacked website redirect, only on desktop, help with restoring it [closed]
- Does WordPress automatically redirect url without parent slug?
- Custom rewrite rule
- How to hide that a certain non-WordPress directory exists on the server?
- All pages showing up as homepage on WordPress website
- Menu links only using http after enabling https, unable to redirect http links
- Redirect “any page/page/number/” to “any page”
- url keeps redirecting to a page
- WordPress site in subdirectory load site in main directory
- How to create a 301 redirect that doesn’t apply to subsites
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?
- Alias ‘wp-content’ directory to something shorter (framework?)
- WordPress multisite htaccess redirection to new domain
- some url does not redirect from http to https
- Why can’t I access files / directories outside of wordpress
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Redirect blogpage /blog/abcd/ to /blog/
- https redirect (with .htaccess) redirect loop
- How to redirect visitor to a custom URL using PHP code in functions.php
- How to redirect from various ?page_id= to home page?
- Deny access to a path (give 403 or 404 response)
- htaccess 301 redirect http to https doesn’t work
- Redirect all pages except one to homepage via .htaccess
- 301 Redirect Loop
- Redirect 301 www.my-site.com/page/n to www.my-site.com/ [closed]
- Redirecting old post url to 404 in wordpress using htaccess
- Special domain for a page
- Headless WordPress redirect front-page to login page [closed]
- How can I redirect my website’s homepage to a random blog post?
- How to redirect subcategories to a page?
- Use htaccess to redirect WordPress to static website in a subfolder
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- htaccess redirects and WordPress
- How to redirect to home page after registration?
- How to set up a single portfolio page as home page?
- Redirect blog archive into certain format
- 301 Redirect To Post ID
- CNAME vs A Record for WWW – with 301 Redirects
- How to publish new posts/pages in root instead of subfolder, but keep old structure in place?
- forward domain name to particular page?
- htaccess rules not applied?