how to redirect mysite.com/page 2 mysite.com/index.php?p=pag

  • nonc
  • Born
  • Born
  • No Avatar
  • Joined: 17 Sep 2006
  • Posts: 4
  • Status: Offline

Post September 17th, 2006, 10:39 am

How do i set it up so that when people visit by typing http://www.site.com/topic it redirects to http://www.site.com/index.php?page=topic without changing the url in the address bar?

and is this search engine friendly?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 17th, 2006, 10:39 am

  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: 30 Sep 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post September 17th, 2006, 2:40 pm

You can create server redirects in cPanel, or look into the PHP header function:

[php]header ("Location: http://www.php.net");[/php]
  • nonc
  • Born
  • Born
  • No Avatar
  • Joined: 17 Sep 2006
  • Posts: 4
  • Status: Offline

Post September 17th, 2006, 3:15 pm

i thought that that would redirect the user to that web address? rather than change the apparent url in the address bar?
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: 30 Sep 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post September 17th, 2006, 3:17 pm

It does and that is what you asked ...

Quote:
How do i set it up so that when people visit by typing http://www.site.com/topic it redirects to http://www.site.com/index.php?page=topic without changing the url in the address bar?

Post Information

  • Total Posts in this topic: 4 posts
  • Moderator: Moderator Team
  • Users browsing this forum: No registered users and 80 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.