1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Rediretion

Discussion in 'Site & Server Administration' started by aCebOy, Mar 18, 2013.

  1. #1
    Hi All, I'm trying to redirect a url to another, but i can't, please help me i want redirect

    http://exemple.com/forums/Short/
    Code (markup):
    to
    http://exemple/forums/Short/?order=title&direction=asc
    Code (markup):
    Please Help me to do this
     
    aCebOy, Mar 18, 2013 IP
  2. Garkoni

    Garkoni Active Member

    Messages:
    213
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    .htaccess file:
    Redirect 301 /forums/Short/ http://exemple/forums/Short/?order=title&direction=asc
    Code (markup):
     
    Garkoni, Mar 19, 2013 IP
  3. aCebOy

    aCebOy Banned

    Messages:
    68
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Thanks, But This Error Appear:(

    The page isn't redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


    This problem can sometimes be caused by disabling or refusing to accept
    cookies.
     
    aCebOy, Mar 19, 2013 IP
  4. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #4
    olddocks, Mar 19, 2013 IP
  5. Garkoni

    Garkoni Active Member

    Messages:
    213
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #5
    OKay , the problem is - you are redirecting from the file to the same file. Remove the .htaccess redirect.

    You might want to modify your php script and add to the top of the document:

    if ( !isset( $_GET['order'] ) && !isset( $_GET['direction'] ) ) {
     
      HEADER( 'location: http://www.fullURL/forums/blablah' );
     
    }
    Code (markup):
    Very important - this must be added before the PHP script echoes any other text to the page, i.e. to the very top of the page.
     
    Garkoni, Mar 19, 2013 IP
  6. aCebOy

    aCebOy Banned

    Messages:
    68
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    36
    #6
    Thats No Directory, Its a forum
     
    aCebOy, Mar 19, 2013 IP
    babanner likes this.