Question about changing header for website.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alibinzahid
Forum Newbie
Posts: 2
Joined: Mon Feb 17, 2014 10:36 pm

Question about changing header for website.

Post by alibinzahid »

Hello,

I am trying to make a website in PHP (I don't really have any experience in this). What I did was use an existing website that somebody created for me and just went about changing things in the .php files.

I had this in header.php:

Code: Select all

<base href="http://old-domain.com/"; />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="css/default.css?v=4" />
<link rel="shortcut icon" href="favicon.ico" />
I just changed the 'old-domain' to 'new-domain'.

Now, my homepage of the 'new-domain' looks fine. But all other pages, like new-domain.com/help or new-domain.com/about give me a 404.

On the other hand, when I change the 'new-domain' back to 'old-domain', it displays my old website properly.

What am I doing wrong? Do I need to set up new-domain.com/help, etc somewhere else?

Thank you.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Question about changing header for website.

Post by Celauran »

What you've changed looks fine, but there are almost surely other factors at play. Have you checked .htaccess for rewrite rules?
alibinzahid
Forum Newbie
Posts: 2
Joined: Mon Feb 17, 2014 10:36 pm

Re: Question about changing header for website.

Post by alibinzahid »

Where can I find the .htaccess file? I don't see it anywhere (I've checked hidden files too, it's not there).
Post Reply