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
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- About HTTP_HOST & PHP_SELF
- .htaccess redirect 403 error files to 404 error document
- RestApi server code is not workinng
- Missing images after I redirect to a subdirectory using route.php and/or .htaccess in CodeIgniter Framework
- Internal 500 server error: .htaccess: RewriteCond: bad flag delimiters
- Error 404 not going after Wordpress Permalink change to custom structure
- How work with parked domain names in Codeigniter?
- Redirect keystone app to sub directory using htaccess
- .htaccess rewrite condition to remove 'www' from 'https://www'
- Change displayed URL using htaccess
- .htaccess file making new domain redirect to my original domain
- htaccess www to non-www for subfolders
- htaccess redirect url with multiple folder
- Url friendly htaccess PHP
Related Questions in DRUPAL-7
- Drupal access control to custom user profile page
- How to list all child pages of current parent page in drupal 7?
- Drupal location module shows only a portion of Gmap on node page
- How to add a select collection type select list to field collection
- Drupal AngularJS ajax simple ng-repeat update
- PHPStorm Drush on Vagrant
- Drupal: Access A Field in hook_views_query_alter()
- Drupal domain access auto create content
- How to display sibling pages except current page in drupal 7?
- how to merge entity reference relationship field value
- Drupal print breaks when rendering a region
- Drupal 7 treating HTML div with data attribute as text
- All files and folders are not being listed in the imce file browser in Drupal 7
- drupal api returns json causes syntax error, malformed JSON in json_decode function of php
- Drupal module development, custom database tables, pages for managing those data
Related Questions in SUBDOMAIN
- About HTTP_HOST & PHP_SELF
- JavaScript's document.cookie does not replace cookie in the subdomain
- How to see our shop URL in webkul magento extension
- HAProxy Redirects Of Domain & Domain w/Subdomains
- Sub domain "www" not showing up on sub domain url
- Symfony2 + FOSUserBundle + few subdomains
- Redirect website to another website if blocked in particular region
- Regex: How to expand regex for domain name to include domains of type a.b.c.d?
- 301 redirect from subdomain to domain using Plesk
- Steering assistance subdomain, How should .htaccess
- Htaccess adding contents of shared file system in url
- .htaccess redirect everything
- Multiple subdomains to same address
- multi stores in magento root directory not correct
- How to route meteor app dynamically on x.myapp.com where x is dynamic?
Related Questions in SUBDIRECTORY
- EnvDTE iterate through subfolders within solution
- Get all items of a sharepoint list
- Google drive PHP API: unable to insert files or folders into subfolders
- Edit HTACCESS file to prevent direct access to a particular file within a particular folder
- Is there a way to associate data with a file in a folder hierarchy?
- Recursively expand and search pattern of specific subdirectories
- Win7 Batch File - Moving Subfolders(& Files) to Grand-Parent Directory
- How to link subdirectories using subdomain? (VirtualHost, mod_rewrite, htaccess, DNS)
- How can I download entire directory from remote machine with using scp libssh library in c++?
- Rewrite wildcard subdomain to the same name folder and get the subdomain name
- Recurse through selected level of subdirectories
- Iterate through the folder and find a particular file
- How to load folder structure into treeview?
- Traverse directory and zip certain subdirectories in place
- Python creating subdirectory with user input
Related Questions in DRUPAL-DOMAIN-ACCESS
- Multiple domains and organic groups in Drupal
- Redirecting all subdomains to a domain
- Capturing Drupal7 DOM content before page load for comparison
- Drupal 7, Domain Access, and SSO (Single Sign-On)
- How can i setup database and source code of single domain to be used by multiple domain in drupal?
- Hide other domains' menus from node edit form on a Drupal site using domain access
- htaccess redirect subfolder of certain domain
- Url Alias not working for domain paths
- Drupal Domain Access module Settings Tab White Screen of Death WSOD
- Drupal 7 Domain Access XML Sitemap
- Node access/Views: What is the function of domain_site and domain_id realm
- Installing different theme and modules using Drupal domain module
- drupal 7 Configuration file location
- Got error in multiste ( Domain access module )
- Drupal Domain Access Authentication
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 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.