RewriteCond %{HTTP_HOST} dom1 [NC]
RewriteRule ^((about\-us|etc).*) /dom1/$1 [NC,QSA,L]
Your rewrite rule includes the L
parameter, which makes it stop processing rewrites. So WordPress’s rules to redirect to index.php likely never come into effect. Which means WordPress is not even being run here. The 404 is likely from the webserver saying that the file at /dom1/about-us does not exist.
Related Posts:
- How to create custom URL routes?
- How to change default page slug?
- Mod_rewrite delete parameter in 301 Redirect
- Need to make a php file inside theme accessible via url
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Rewrite rule to load images from production does nothing
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress rewrite rules don’t need ^?
- Custom rewrite not working
- Rewrite wp-login.php URLS to static pages?
- Rewrite custom post type URL parameters
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- Change pagination url format
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- Localize URL bases
- How can I create custom URL routes?
- How do I make WordPress revise an .htaccess file a certain way?
- How to change an existing wordpress page rewrite rule?
- Pretty URL via Rewrite
- Custom Rewrite for Profiles
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- Can’t get pretty permalinks to work without index.php
- How do you create a “virtual” page in WordPress
- remove “index.php” from permalinks
- Rewrite rules not working in WordPress
- Preserving $_GET parameter while using custom Rewrite Rule
- Taxonomy rewrite question
- Getting add_rewrite_rule and add_rewrite_tag to work
- Rewrite rules goes away
- Rewrite Rule for Custom Page with Query Vars in URL
- Dynamic URL, not a physical page within the database
- WP Rewrite the last two parts of the URL
- Nginx rewrite rule conflict with WordPress permalinks rule
- Access $_POST data after redirect
- Change Query String to pretty permalink
- add_rewrite_rule not working for language specific characters
- How to add a custom redirect rule for subdomains?
- How to do Basic URL Rewrite Without Redirecting
- Is it possible to remove feeds from rewrites?
- URL Rewrite doesn’t work for nested pages
- Rewrite URL – insert custom variables as a directory path
- Using custom mod_rewrite without breaking wordpress permalinks
- Can’t add external rewrites
- url rewrite parsing a custom url parameter not working
- How to add custom variable in url without redirect?
- Using category slug in add_rewrite rule
- add_rewrite_rule ignoring other params than the “p” param
- Url Rewriting a dynamic wordpress page
- How to catch Rewrite rules then display a specific post?
- Adding two rewrite rules
- Load an url with minimal/no DB queries
- WordPress Rewrites – How can I pass a variable to Custom Post Type?
- Monkey Man Rewrite Analyzer says my rule will trigger but it doesn’t [closed]
- .htaccess rewrite
- Auto generate rewrite rules for multiple taxonomies
- Change htaccess to redirect to index.php in subfolder
- Help with Rewrite Rule for Custom Post Type with Query String
- Create Dynamic SEO Friendly URL for Virtual Page
- add_rewrite_rule with query variables
- Rewrite rules automatically for pages using specific template
- How to remove specific category from URL in WordPress
- How to redirect specific URL to Subdomain
- How to rewrite wordpress urls with index.php in them
- Rewrite query string to path
- Rewrite API -Adding a parameter before the slug
- Help with rewrite rules for two post types
- Rewrites rules disappear after a while
- Adding a rewrite rule to page that has no fixed variables and pagination
- Flush rewrite rules on option update with Settings API
- Rewrite specific action url
- Using URL rewrite to add custom URL for custom post type
- WordPress simple Url Rewrite
- Rewriting in wordpress url
- Why is a rewrite rule in wordpress prevent pagination?
- Rewrite custom taxonomy slug – but only parent items
- wordpress path generation from rewrite rule
- Rewrite WordPress Url from root to subfolder without moving files
- Ugly URLs when there’s pagination
- How do I rewrite URL that has custom parameter
- Help adding custom url, rewrite_rules_array
- Why is there a 404 on page 2+ for my search page?
- Rewrite rule for post as a child of a CPT
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- .htaccess RewriteBase equivalent for WordPress – Passing a URL as a variable without getting a 404
- URL Rewrite for CPT single posts
- Migration from old CMS to WordPress 301 redirection rules?
- Using add_rewrite_tag to create urls for page sections
- Rewriting WordPress URLs
- Function to rewrite URl in WordPress
- Add rewrite endpoint and .htaccess
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- Rewrite rule to simulate page hierarchy results in 404
- Rewrite URLs in a Custom Post Type with Multiple Taxonomies
- Rewrite rule giving 404 error
- WordPress picks a wrong template if ?cat= is used as URL parameter
- WP-Include rewrite directory
- How to combine nearly identical custom rewrite rules for WordPress