‘RewriteBase /’ is not needed. RewriteBase allows you to change your internal directory structure to something other than what a browser sees. IE: If all your files are in ‘http://mydomain.com/site’, but you wanted ‘http://mydomain.com’ to be the path browsers see, you would use a RewriteBase /site
and apache’s mod_rewrite would happily add that substitution for you.
A RewriteBase /
is not necessary.
Related Posts:
- How to remove .html from URL?
- How to remove .html from URL?
- How can I use an .htaccess file in Nginx?
- .htaccess – how to force “www.” in a generic way?
- htaccess – Redirect to subfolder without changing browser URL
- How does RewriteBase work in .htaccess
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Generic htaccess redirect www to non-www
- Masking wp-content/themes/name/images to just images directory using htaccess
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- Place static HTML files in path below WordPress page
- htaccess rewrite for author query string when WP is in subfolder
- How to map permalinks with accented letters to sanitized slugs?
- Remove year and month in URL using .htaccess
- Bypass .htaccess when using download_url
- Removing rules from .htaccess
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Rewrite rule not working
- Cache Busting using htaccess Rewrite rule?
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- .htaccess redirects disappeared after re-saving permalinks
- Protect Upload Folder Files With Ampersand Problem
- Remove File Extension for Page Outside of WordPress
- WordPress URL/Folder ReWrite using Htaccess
- WordPress mod_rewrite is canceling/overwriting my other mod_rewrite rule
- Menu links only using http after enabling https, unable to redirect http links
- How to protect media directory with .htaccess?
- How to create a 301 redirect that doesn’t apply to subsites
- Rewrite rule to load images from production does nothing
- mod_rewrite empties QUERY_STRING if starting with number [closed]
- Remove base slug in permalinks of hierarchical custom post type
- WordPress rewrite rules don’t need ^?
- Why is my mod_rewrite not working?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- Override htacces rule only for specific directory
- Adding rewrite rules directly to .htaccess file
- .htaccess rule to redirect old URLs to new structure [closed]
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- Only default permalink is working mod_rewrite enabled
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- a one-off rewrite rule
- blocking access to all post/tag URIs via htaccess
- Change htaccess to redirect to index.php in subfolder
- .htaccess rules for blocking bots with an extra condition
- How to remove wordpress directory slash
- Wrong Redirect/Rewrite Rules?
- Site in subfolder – all pages work except home
- Redirections and rewrites to subdomain
- htaccess, site and staging in subdirectories
- How to write .htaccess so that https is on for subpages only but not the home page
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- How To Fix A Redirect Chain
- How to create a redirect in the .htaccess file, with 2 exceptions
- 404 error Additionally 403 Forbidden error on a URL
- Map secondary domain to other’s virtual subfolder
- Custom rewrite rule, url returning 404
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- Changing wp login url without plugin
- Loading index.php contents which located outside blog folder for post single page
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- mod_rewriting conflict with WP permalinks in htaccess [closed]
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- force www rewrite if wordpress put in a folder
- Deny access to uploads folder with exceptions
- WordPress Page Not Found if Permalink Settings is Postname
- Simple seo-friendly custom $_GET url rewrite with htaccess
- How do I make WordPress revise an .htaccess file a certain way?
- Redirect URL Containing åäö
- How can I create a smarter .htaccess file that will add a directory?
- mod-rewrite rules grabs “broken permalinks”, too
- What is the importance of mod_rewrite?
- 1 WordPress, 2 themes, 2 domains, 2 servers
- apache_mod_loaded setting can fubar plugins?
- Rewriting subfolders to specific parent folder in WordPress
- Understanding Redirects
- How to stop rewrite from redirecting
- Block bad bots with mod_rewrite and save in blacklist
- htaccess redirect to path
- Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?
- Pretty URL via Rewrite
- URL Rewrite 404
- using htaccess to check for cookie on permalink then conditionall rewrite with query parameter
- htaccess question and plugins.php
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- htaccess and redirect to new url using regex
- I can access subdirectory, but not files within it
- Pretty permalinks (again)
- ModRewrite not working properly
- htaccess mod_rewrite not working
- customize urls displayed by previous_post_link and next_post_link
- .htaccess not working in WordPress
- Add-on domain works in WordPress but links still lead to subdomain
- WordPress on a subfolder but accessible from root
- why doesn’t my rewrite rule work? (is there something weird with wordpress htaccess?)
- Can’t get pretty permalinks to work without index.php
- How to redirect a virtual page (e.g. /blog) to the home page?
- Add rewrite endpoint and .htaccess