Website Direction...


Posted on 16th Feb 2014 07:03 pm by admin

I recently used this code to try and make it so the page loads as http://www.domain.com/ when you type in http://domain.com
I thought this code would make sense and be a solution, but just loops.
Could anyone explain please.
Thanks in advance..
Did you know?Explore Trending and Topic pages for more stories like this.

Code: <?php
$server = $_SERVER['HTTP_REFERER'];
if ($server == "http://www.domain.com/") {
echo "Hello World";
} else {
header("Location: http://www.domain.com/");
}
?>
No comments posted yet

Your Answer:

Login to answer
245 Like 37 Dislike
Previous forums Next forums
Other forums

What exactly is net neatrality?
What exactly is it? I think it's anti-censorship and... stuff... but I don't really understand it

Embed Video Problem
Hey, thanks for looking!

File to be embedded:

Code: <playlist version="1&q

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

How to make a mail Form secure?
I want to create an email Form on my web site. How can I make the Form secure so the submitted info

for loop without same $i digits?
Hi,

Can some guru please advise how can I accomplish this with a simple for loop ?

I

Creating web pages by php
Hello again,
I was just wondering us there a way to use a php script to create a new web page. I

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

All possible combinations of String in PL/SQL
Hi All,

Could you please explain the logic of getting all possible combinations of String

send() and recv() parameters confusion
On server Side:
int recv (Socket,Buffer, Length, Flags)
On Client Side:
int send (Soc

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash