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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:30:15+00:00 2026-06-13T14:30:15+00:00

I have a index.php which will be loaded on many sites <?php $id=$_GET[id]; header(HTTP/1.1

  • 0

I have a index.php which will be loaded on many sites

<?php
$id=$_GET[id];
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://site1.com/?user_id=86&res=".base64_encode("site2.ru")."&dn=50&delay=1&de=".base64_encode("://SITE_DOMAIN/folder/?id=".$id));
exit;
?>

How can this code be changed, if i need to fill the place “SITE_DOMAIN” with domain name, on which index.php is loaded?

  • 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-13T14:30:17+00:00Added an answer on June 13, 2026 at 2:30 pm

    You asked:

    i need to fill the place “SITE_DOMAIN” with domain name, on which index.php is loaded

    Use $_SERVER['SERVER_NAME'] for this.

    See the PHP manual for more detail: http://php.net/manual/en/reserved.variables.server.php

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

Sidebar

Related Questions

I have: $page_file_temp = $_SERVER[PHP_SELF]; which will output: /templates/somename/index.php I want to extract from
I have been using this rule: RewriteRule ^([^\.]+)/?$ index.php?page=$1 [L] Which will turn example.com/page/hello
I currently have the code RewriteRule ^(.+)$ index.php which will redirect all the request
I have an index.php-file, which will echo the string with the returned .html-file prepared
I have an index.php file which has 2 included files require(stats.php); require(stats_encry.php); stats.php which
I have a index.php file which loads (require) 2 different files based on a
I have just a basic html form within index.php which contains two text fields:
I have already a site with a single homepage index.php which accepts 2 parameters
I have folders and pages /admin/add/index.php, /admin/edit/index.php & /admin/view/index.php which all are requiring page
Iam making an app which has one index.php file. I also have these other

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.