www.webdeveloper.com
Results 1 to 7 of 7

Thread: Need a 301 redirect created

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    3

    Need a 301 redirect created

    I just rebuilt my site and need to 301 redirect the old urls example
    Old url http://www.boatboss.com/?search=Rang...=-999&view=ads
    Redirect to new url http://www.boatboss.com/maker/ranger/

    I cant get it to work from cpanel as the old url is dynamic. There are 170 of this type url but the names all match
    How much to do this for me

  2. #2
    Join Date
    Jan 2014
    Posts
    3
    I got it working

  3. #3
    Join Date
    Jan 2014
    Posts
    4
    Since the answer was not posted, i will post it for lurker's sake:

    Code:
    HEADER('location: http://www.targeturl.com/');
    It must be executed before anything that outputs text, like echo, otherwise it will not work.


  4. #4
    Join Date
    Jan 2014
    Location
    On the earth
    Posts
    67
    Quote Originally Posted by BasictoPHP View Post
    Since the answer was not posted, i will post it for lurker's sake:

    But after a long wait of answer from other member he/she got the answer before anybody post the solution here. By the way good answer but a bit late.

  5. #5
    Join Date
    Feb 2014
    Posts
    2
    Thank you for this answer...I am looking for this only...

  6. #6
    Join Date
    Oct 2013
    Posts
    30
    CSS Tricks has an explanation on http 301 redirects: http://css-tricks.com/snippets/htaccess/301-redirects/

  7. #7
    Join Date
    Jan 2014
    Location
    Calgary, Canada
    Posts
    30
    Try this code

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.com" );
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles