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
.htaccess file: Redirect 301 /forums/Short/ http://exemple/forums/Short/?order=title&direction=asc Code (markup):
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.
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.