You can skip the first Part of your .htaccess
, just use the standard WordPress configuration.
The main problem is, you need to create a new index.php
in the root
directory of your webspace, containing the following:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./blog/wp-blog-header.php');
?>
You also need to create a .htaccess
file in your root directory, containing the standard WordPress .htaccess
, and then everything should work fine.
Related Posts:
- RedirectMatch and Redirect interfering with each other
- Why specific file directory fails to redirect but its parent folder succeeds?
- Redirect home to another page with htaccess
- Redirections and rewrites to subdomain
- 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?
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- htaccess and redirect to new url using regex
- Redirect entire website to a single page
- Force HTTPS using .htaccess – stuck in redirect loop
- 301 redirect not working through .htaccess
- Site redirects to wrong url when saving settings
- Index in root, wordpress in subdirectory
- 302 redirect instead of 301 after switch to HTTPS
- How do I skip wordpress’s 404 handling?
- Redirect from https to http or from http to https? [closed]
- Redirect too many times htacces switching to https
- add_rewrite_rule to pass entire path as a single parameter
- htaccess redirect – directory and subpages to a single page
- 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]
- How to hide that a certain non-WordPress directory exists on the server?
- 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
- https multiple redirects
- 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?
- 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]
- https redirect (with .htaccess) redirect loop
- Redirecting old post url to 404 in wordpress using htaccess
- How to redirect subcategories to a page?
- Redirect blog archive into certain format
- 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?
- htaccess redirect – replace special character
- Load time cost of using a redirect plugin v direct .htaccess entry
- htaccess 301 Redirect not working for WordPress site
- Custom Permalink
- How to set 301 redirection after moving WordPress blog?
- Redirecting amp url to non amp url
- I need to redirect an entire subdirectory in WordPress to the homepage – is this correct?
- 301 redirection editing .htaccess doesn’t work
- Redirect custom post type from one domain to another domain
- Redirect htaccess does not work correctly with my new wordpress site
- 301-redirect directives for blogger to wordpress migration
- .htaccess 301 redirect conflict with plugin “WordPress Https”
- How do I put up a splash page and have all WordPress links redirect to this page?
- Redirect – remove custom query string
- Redirect specific URL before other redirects take place in .htaccess?
- How to forward all requests starting with a specific folder name to the same folder
- Stop forcing certain paths to end with a forward slash
- Issue redirecting ‘blog’ to ‘news’ in WordPress using .htaccess
- Use two different index pages
- I want to resolve Redirect Chain [closed]
- How to fix URL with pageid example /?p= too many redirection error
- 301 redirect any RSS feed on level up url
- How to redirect an old page url to the homepage
- Custom URL routes
- redirecting an entire WP site from one top level domain to another
- Is there way to redirect all blog post pages to Home page?
- Temporary Infinite Redirect Loop
- A question about .htaccess
- Date based redirects of posts that no longer exist
- WordPress redirect to new domain name
- 301 all old pages to new location
- Open wordpress page in directory the way index.html would open
- Use a 301 to Redirect any 404 from at the blog post level to the blog archive
- Understanding Redirects
- Error in /blog redirection – ubuntu default WP installation
- how to redirect 404 to attachment.php?
- 302 redirect *.at/site redirecting to .comsite
- 301 Redirect in WordPress not working in htaccess
- Loading /wp-content/uploads/site as /site/
- Redirect after login when WordPress in subdirectory
- Redirect after Permalink change – What regex do I use?
- How do I skip wordpress’s 404 handling?
- Allow GET request on certain page
- .htaccess redirect for old subfolder installation to new subfolder installation and https
- How to 301 redirect to subdirectory but keep access to wp-admin of main domain
- Pagination redirect set in .htaccess file is not working
- Redirecting a POST to a php script
- How to redirect correctly a root domain to a subdomain in a subfolder?
- Debugging a redirect loop affecting only certain pages
- How to permanent redirect old domain to new one. in case amazon store
- Need rewrite for URL with specific string
- WordPress subfolders htaccess bypassing the root htaccess RewriteRule
- How does the flow of htaccess files in sub-directories work
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- How to Redirect Url to homepage?
- Redirect old homepage to the new one within the same site