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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:20:37+00:00 2026-05-11T21:20:37+00:00

2 of my urls, for example www.abc.com and www.def.com point to the same .php

  • 0

2 of my urls, for example http://www.abc.com and http://www.def.com point to the same .php file. I have some text on that target page that needs to be dynamically changed depending on whether it came from http://www.abc.com or http://www.def.com. Can this be done? How?

  • 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-11T21:20:38+00:00Added an answer on May 11, 2026 at 9:20 pm

    See $_SERVER['HTTP_HOST'] for the host name of the current request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this .htaccess that I've been using to rewrite URLs like these: www.example.com/index.php?page=brand
I have some URLs, like http://www.example.com/something?param1=value1&param2=value2&param3=value3 and I would like to extract the parameters
I have a set of urls like... www.example.com/page/1/name/abc www.example.com/city/la/name/abc www.example.com/page/1/name/abc/city/la www.example.com/page/1/ And want to
I have a large array of URLS similar to this: $nodes = array( 'http://www.example.com/product.php?page=1&sortOn=sellprice',
I see some URLs like this: http://www.example.com/?view=profile&id=098&hash=589e8bed895198495d987d055699d2b9 Why some sites add ID and hashed
Possible Duplicate: Java - Regex problem I have list of URLs of types: http://www.example.com/pk/etc
I need to rewrite URLs from: www.example.com/John.Connor/my-first-post/42 to: www.example.com/post.php?postid=42&userid=19 Tables: USER: id, name, surname,
I have a directory that was mislabeled. Example: www.example.com/badfolder It should've been: www.example.com/goodfolder Within
I'm trying to rewrite URLs as follows: www.example.com/module-name(/) => handler.php?module=module-name www.example.com/module-name/list/of/arguments(/) => handler.php?module=module-name&args=list/of/arguments (which
I'm looking for a regex that accept urls like these: http://www.example.com www.example.com This is

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.