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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.