Category : redirect

I would like to have this form redirect on success not stay on the same page. I want it to redirect to example.com The problem could be this $sql = "SELECT * FROM accounts WHERE username=? and password=? and email=? LIMIT 1"; $stmtselect = $db->prepare($sql); $result = $stmtselect->execute([$username, $password, $email]); $user = $stmtselect->fetch(PDO::FETCH_ASSOC); if ($stmtselect->rowCount() ..

Read more

I have the following problem: as soon as I call up a file with additional parameters, the redirection does not work! The forwarding is done with PHP header. The file call in the browser: https://www.mein_de_domain.de/archiv/Archiv-567KES.html,2021-01-04 The error message reads: Multiple Choices The document name you requested (/archiv/Archiv-567KES.html,2021-01-04) could not be found on this server. However, ..

Read more

I am (trying to) writing some code to redirect a user within my website depending on their device. If the user is on a mobile, I want to add a directory "/m/" to the beginning of the current path and redirect them to the same file in the new location (with the same url parameters ..

Read more

I want to redirect all URL request to main domain, for example this URL: http://example.com/?f=asd4456sad redirect to : http://example.com/ I use this code in .htacsses but not work: RewriteEngine On RewriteRule ^(.*)$ http://upload7.ir/$1 [NC,L,R] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* / [R=301] RewriteEngine On Sourc..

Read more