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

  • Home
  • SEARCH
  • 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 7949803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:04:57+00:00 2026-06-04T02:04:57+00:00

How I can redirect users to home page in default language? For example to

  • 0

How I can redirect users to home page in default language? For example to sait.com/fr from sait.com/ when user almost came.
I tried to use front-page module but he redirects to sait.com//fr/fr instead sait.com/fr

  • 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-06-04T02:04:59+00:00Added an answer on June 4, 2026 at 2:04 am

    You can store a cookie variable on client that a user has visited after a comes first time, and before that check if the cookie value is set or not.

    Create a custom module and in the hook_init() method of your module, check if the cookie is set, then don’t redirect anywhere, if it’s not set, set the value and then redirect him to the default language home page.

    
    if(!isset($_COOKIE['user_visited])) {
        $_COOKIE['user_visited] = true;
        global $language
        $default_language = variable_get('language_default', $language);
        drupal_goto($default_language->prefix);
    }
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I redirect a user to home page? Example: mywebsite.example/ddfdf/fdfdsf and I want
how can i redirect to a page from sharepoint? i have this within the
I want the app to redirect a user to a different home page depending
Trying to redirect users to their associated 'home' page after successful login w/out nil'ing
So I have a home page where a user can log in. Once they
I would like to know how I can redirect to a certain page (during
How can I redirect www.mysite.com/picture/12345 to www.mysite.com/picture/some-picture-title/12345? Right now, /picture/12345 is rewritten on picture.aspx?picid=12345
how can i redirect index.php?search= to the base url? I tried it with this
How can I redirect a page request in Go running on GAE, so that
When I want to redirect a user to a specific page behind a login

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.