Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4613608
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:34:35+00:00 2026-05-22T01:34:35+00:00

I have 3 subdomains , which are based on Opencart. What I need to

  • 0

I have 3 subdomains , which are based on Opencart.
What I need to force on each domain given language

to do so _GET[‘language’] should be defined strictly for each subdomain

en.handmade24.at -> language=en

ru.handmade24.at -> language=ru

http://www.handmade.24.at -> language=de

I was told .htaccess was a good option to force language variable…

But how can i define the rules? Any help? I am dummy in htaccess…

my Htaccess looks like this

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Or maybe you could offer nicer solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:34:36+00:00Added an answer on May 22, 2026 at 1:34 am
    RewriteCond %{HTTP_HOST} ^(www\.)?handmade24\.at
    RewriteRule ^(.*)$       $1?language=de [QSA,L]
    
    RewriteCond %{HTTP_HOST} ^(\w+)\.handmade24\.at
    RewriteRule ^(.*)$       $1?language=%1 [QSA,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a need to mod-rewrite my domain based off of subdomains...there are two
I have domain somedomain.net which is linked to some IP 123.45.67.89 I need to
I have a number of subdomains, which are using crossdomain.xml file and I'm looking
I have a domain foo.com on server bar. I have a subdomain api.foo.com which
I have a domain name: TestSite.com. I create several subdomains for this site and
I have a web app which serves images based on the subdomain. We wanted
My app allows users to have custom subdomains, as in user1.domain.com. I am integrating
tl;dr I am considering a webservice design model which consist of several services/subdomains, each
I am migrating my application which provides a subsite for each user from domain.com/~user
I have some sites in subdomains which are made in wordpress and some are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.