Skip to content

Tag: redirect

cURL issue with Google consent redirect

I’m running into an issue with cURL while getting customer review data from Google (without API). Before my cURL request was working just fine, but it seems Google now redirects all requests to a cookie consent page. Below you’ll find my current code: $result now just prints “302 Moved. The …

Serving a page to any URL that ends in its slug

Still new to WordPress, so please go easy on me. Goal: Prevent users of a specific role from viewing other custom post types made by users of same role. Intended solution: Modify the URL and redirect to a custom 403 page when the user ID doesn’t match the post author. As such, if the person attempting t…

PHP Header Function Redirects to 404 Error

I am using a header redirect after the user submits a login and registration form and the input has been stored in a mysql database. The registration info is successfully stored into the database but when the script goes to redirect I reach a 404 error. I am using the variable $redirectURL to pass the absolut…

User Redirection accordingly an enum input. PHP code

I’m trying to redirect the logged-in user to a different page according to the enum input was stored at db. I was trying those lines, but it always redirects me at pro.php. How can I do this with the right way? What is the issue with the code? Here is my table definition: # Name Type Null Default 1 id

Redirecting non Safari mobile browser?

I am looking for assistance with coding to detect and redirect a iOS user on any browser other than Safari. I was able to accomplish this via .htaccess, but for iPhone & iPad redirect only, via this: But, I only intend it for non-Safari iOS browsers on iPhone and iPad. Open to other methods than htaccess.…