What is the RewriteBase set to? Is this the first rewrite rule in the .htaccess?
Why are you doing it with a RewriteCond instead of directly going for
RewriteRule ^/(apple|ball|cat)(.*) http://archive.domain.com/$1$2 [R=301,L]
(Change ^/
to ^
if You have RewriteBase /
in effect)?
Related Posts:
- htaccess rewrite conflict with wordpress rules and ssl
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- WordPress site displaying 404 for any page apart from index
- .htaccess Rewrite URL WordPress
- different child theme for subdomain
- Struggling with add_rewrite_rule
- .htaccess rewrite rule puzzle
- need a help for modify .htaccess rule [closed]
- Best way to redirect site in subdirectory to root?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- TimThumb & htaccess : clean url
- What to write in the htaccess in order to detect browser language and point accordingly?
- want to rewrite an URL in wordpress
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- htaccess problem not being able to overwrite previous rules
- add_rewrite_rule to remove /category/ from permalink
- Relative links stop working after moving wordpress site from hosting to localhost
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Rewrite Rules not redirecting rewrite
- Rewrite URL in address bar for a specific page [closed]
- How do I reset a rewrite?
- Rewriting subfolders to specific parent folder in WordPress
- Redirect default pagination page to template page’s pagination
- Remove subdirectory from links
- Rewrite rules and maintain URL
- WordPress URL not working?
- rewrite rule on plugin activation
- Default .htaccess file for WordPress?
- Does this .htaccess security setting really work?
- How to add custom rewrite rule to .htaccess?
- htaccess problem after saving Settings
- File and directory permissions
- htaccess https redirect from www to non-www
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- Isolating WordPress to a subfolder
- Why does the header set X-Robots-Tag apply to all pages?
- A plugin changes my .htaccess file and I can’t access httpd.conf as that’s a shared server
- Cache Busting using htaccess Rewrite rule?
- What is the role of .htaccess file in WordPress?
- Remove File Extension for Page Outside of WordPress
- Custom rewrite rule
- How do I edit the htaccess file to optimize my website?
- Block only external access to wp-cron.php on OpenLiteSpeed
- Site searches by Python for non-existent assets
- Allow logged in users who doesn’t belong to whitelisted ips
- WordPress On subfolder
- Special domain for a page
- Create rewriterules for different domains in htaccess file with WP multisite
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- How to ignore folder in site root while accessing a URL
- Htaccess redirect after changing Language URL format
- How do I test to ensure that my wp-config file is protected?
- How can I enable keep alive (Not accessing to Apache)
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- .htaccess Security Header Rules
- WordPress installed in root, need second in subdirectory with different domain
- htaccess has broken my site
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- Weird behavior of Dashboard, must be core files
- Remove trailing slash after .html extension
- Need help rebuilding lost htaccess file
- Customise particular RSS permalink
- How to rename index.php to home.php
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- Remove .htaccess portion upon plugin deactivation?
- Can’t access WP site over WiFi network
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htpasswd asking for authentication on home page
- WordPress login fail after .htaccess domain redirect
- Redirect to new domain with .htaccess [closed]
- I am new in word pres my font awesome is not allow
- Access sub-domain when root public_html is protected with .htaccess password
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- Can’t access htaccess [closed]
- .htaccess redirect not properly working [ ?utm_source=]
- can’t install any wp plugins [duplicate]
- Creating dynamic content and pages for 1000’s of locations
- Should I prevent access to .htaccess and wp-config.php files?
- htaccess redirects invalid request to home page not 404
- Downloading zip or tar.gz inside WordPress installation?
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- How to move wordpress website from hosting account to localhost
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- Unable to find ‘full-path’ to my 404.php file
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- Use htaccess to redirect wordpress non-existent page to homepage
- WordPress RSS feed to external XML
- Does htaccess password keep search engines out?
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Need to edit htaccess while moving on WordPress
- How can I create a private site that is inaccessible from the outside?
- Migration from old CMS to WordPress 301 redirection rules?
- Issue after changing permalink structure [duplicate]
- Url redirection using htacess for my website
- Standard Htaccess directives disappear by themselves
- How To Add CSP frame ancestors in WordPress Website? [closed]
- How do I modify each instance of setcookie?