I have a multi-subdomain multi-lingual website setup and I need to redirect a language subfolder of a certain domain. eg. au.domain.com/us/request_uri to au.domain.com/en/request_uri. This rule needs to be ignored on other domains. All domains are run off the same codebase and all use the one htaccess file (drupal install with domain access module). This shouldn't affect how the htaccess rule is set though.
htaccess redirect subfolder of certain domain
446 Views Asked by joshp At
1
There are 1 best solutions below
Related Questions in .HTACCESS
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- Check REQUEST_URI for any /nl/ or /en/ to change my RewriteRules
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Use htaccess to add subdirectory to url while displaying base url
- Making a POST to a folder are recived as a GET
- Missing Headers Security Report .htaccess
- I can't retrieve GET values
- Ionic local CORS error, yet headers are set
- htaccess rewrite rule - if the parameter value has forward slashes
- How to configure .htaccess file for two different websites routing in my shared hosting server
- Blank page after Create React App Build placed on server
- How to redirect to the landing page when the domain name is searched?
- problem with htaccess RewriteRule with parameters
- WordPress Multisite Subdomain showing error 404
- htaccess config to serve jxl / avif if file exist
Related Questions in DRUPAL-7
- Drupal 7 saving content each time i upload an image
- In which database table is the list of files attached to a node?
- Upgrade the drupal 7.88 to drupal 10.1.1
- Drupal 7 to Drupal 9 through web browser upgrade - "files do no exist"
- I've received an export 'network error' in attempt to export a database from phpMyAdmin
- Drupal 7 Incorrect spam bot errors on different browsers
- Drupal 7 | Uncaught ArgumentCountError: Too few arguments to function _drupal_error_handler()
- I need to add a webform block in drupal 7 for a custom theme
- imperva WAF rules blocked drupal 7 form submit
- Issue with Drupal 9 Visitor Counter Module: Visitors Count Not Updating
- how to add Language in drupal 7.09
- Attempt to create field name which already exists and is active
- Can i customize html and css in $page[content] in drupal 7?
- CDK toolbar does not appear on Drupal 7
- PHP refuses update because in server root, Drupal 7 (php7.3) & Drupal 10 (PHP 8.1) on the same server both working - Can't update D10
Related Questions in SUBDOMAIN
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Download a website using wget command to include any subdomain
- How to assign a shared ssl certificate for subdomain in Plesk
- How to parse subdomains from URLs in FastAPI?
- WordPress Multisite Subdomain showing error 404
- How to use subdomains in laravel app on local ubuntu?
- Troubleshooting incorrect content on mobile redirect
- HTTPS / Secure site failure for sub domains - who's the culprit?
- use RewriteMap to redirect domains to subdomains
- Separate subdomains on one GitHub page
- Method not allowed status code when targeting subdomain
- How to create a folder on windows server dynamically via server panel
- How do I serve my Node.js application on a subdomain?
- exim4: extract domain from subdomain
- Wordpress multisite subdomain gives error 404
Related Questions in SUBDIRECTORY
- Dockerfile and package-json are in different folders
- Github actions to deploy subdirectory flask project to Azure Web App
- how to rename multiple files from different subfolders in R, while keeping them in their original folder
- Write a shell script that has a function that displays the number of files in the present working directory, but not subdirectories
- ModuleNotFoundError: No module named 'src' , trying to import from a sub package
- Switch r settings to not have to create directory when saving files into new subfolders
- Not able to import custom functions from other directory to use in unittest
- How to run this code in all subdirectories?
- How do I push a file into its subfolder in git repository?
- In python how do you get the "last" directory in a path string?
- React import all markdown files in subdirectory and generating routes
- css file being read regardless of changing url (css NOT cached)
- Correctly create the path without taking the whole path name but only from the current one in Powershell
- Editing a Wordpress Multisite Main Site URL
- How do I source an image that is from images sub folder to html subfolder
Related Questions in DRUPAL-DOMAIN-ACCESS
- Drupal 7 Domain Access XML Sitemap
- drupal 7 Configuration file location
- Url Alias not working for domain paths
- Drupal Domain Access module Settings Tab White Screen of Death WSOD
- How can i setup database and source code of single domain to be used by multiple domain in drupal?
- Installing different theme and modules using Drupal domain module
- Drupal Domain Access Authentication
- Redirecting all subdomains to a domain
- htaccess redirect subfolder of certain domain
- Drupal 7, Domain Access, and SSO (Single Sign-On)
- Capturing Drupal7 DOM content before page load for comparison
- Got error in multiste ( Domain access module )
- Multiple domains and organic groups in Drupal
- Hide other domains' menus from node edit form on a Drupal site using domain access
- Node access/Views: What is the function of domain_site and domain_id realm
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here is one way to do it:
Redirects:
http://au.domain.com/us/anythingtohttp://au.domain.com/en/anything/UPDATED
Only
http://au.domain.com/us/anythingwill be redirected tohttp://au.domain.com/en/anything/OR
Hope this helps.