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 3782740
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:07:32+00:00 2026-05-19T11:07:32+00:00

I have a multi language site. Structure of my site is like this: /index.php

  • 0

I have a multi language site. Structure of my site is like this:

/index.php
----/en/login.php
----/some other language/login.php

At index page, user choose his language, language is saved in cookie. From login page user can go back to index and change his language. Now, that’s the root of my problem:

When user, at “login” page clicks “change language”, he is directed to “deleteLangCookie.php”. That php is simple, looks like this:

<?php
if(isset($_COOKIE['lang']))
    setcookie("lang", "", time()-60*60*24*100, "/");
header('Location: ../index.php');
?>

As you can see – 5 lines, pure php. Now, for some time Google webmaster tools complains that “deleteLangCookie.php” HAS THE SAME TITLE as “index.php”. How’s that? “deletelangunage” is not included in “index.php”, it’s just “a gate” to “index.php” when user clicks “change language button”.

“DeleteLangCookie.php” IS NOT indexed, it’s removed from cache and disallowed by robots!

Please help!

  • 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-19T11:07:33+00:00Added an answer on May 19, 2026 at 11:07 am

    If it is not indexed, it is not a problem. The duplicate titles is only to help you, not a penalty by google.

    Maybe try this:
    Add a 301 to your header. That way you’re saying “this is not a real url”, and google might skip the page alltogether. The “deleteLangCookie.php” url is not a “real” url to land on anyway: it does something, but then always redirects you to another place.

        Header( "HTTP/1.1 301 Moved Permanently" );
        Header( "Location: {$uri}" );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this content structure for a multi language site. Content Danish Forside Om
I am building a multi-language site using codeigniter I have this language file $lang['prot_home_1']
I have a multi-language login site and I want to store the login information
I have a multi language site with the following structure: siteroot - en --
I have a problem with Drupal uploads path when in a multi language site.
I have a multi-step order form built in this manner: Step 1: Choose category
I have a multi language site, what is the way to proceed for good
I have a multi-language .Net 4 webforms site (www.example.com/en/, www.example.com/fr/ etc.) and each language
making a multi-language site with codeginiter. I have created two folders. One for french
I have to build a multi-language web site in JSP/Servlet. I'm considering JSTL for

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.