Jump to content

Php includes - re-directing to blog.mycomapny.co.uk HELP


adipalmer123

Recommended Posts

Hi all

 

Just to let you know where I am up to currently.

I have created a database for articles I want to display a a blog. I have created a blog.php page and am echoing out parts of the database. I have then created some dynamic links to display the full article on another page i've named newsarticle.php.

 

My whole site uses includes. i.e. www.maplewebdesign.co.uk/index.php?page=home etc.

I've created a sum domain - blog.maplewebdesign.co.uk but I want to re-direct this to my blog page which is www.maplewebdesign.co.uk/index.php?page=blog

 

I hope this makes sense.

I would really appriciate some help.

 

My website is www.maplewebdesign.co.uk by the way.

The blog page isn't linked yet, but the link is, www.maplewebdesign.co.uk/index.php?page=blog

 

Thanks

Adi

Ah, now I see. The coffee helped.

 

I assume you would want to redirect traffic to the relevant blog article, rather than just the main site? Like, blog.maplewebdesign.co.uk/some-article redirects to maplewebdesign.co.uk/index.php?page=blog&article=some-article, or something.

 

If yes your best bet is probably some .htaccess rewrites.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.