Skip to content
Advertisement

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 document had moved here.” I also tried setting curl_setopt($ch, CURLOPT_FOLLOWLOCATION,

.htaccess – Permanently redirect to root when the website is accessed with mysite.com/index.php with no query string parameters?

I am using a template on my website. This template is designed in a way where everything is in the index.php file but the functions are executed based on the query string which is stick to the index.php file. I want to permanently redirect to the root mysite.com when my site is accessed with index.php with no query string parameters,

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 to view example.com/%taxonomy%/%private-post-slug% would

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 absolute path to the header

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

How to know why a 301 redirect occurred in a PHP application in IIS?

IIS logging has logged that a specific GET request as been redirected. Here is the relevant entry (ip address removed): 2021-10-06 02:48:59 xx.xx.xx.xx GET /test – 80 – xx.xxx.x.xxx Mozilla/5.0+(Windows+NT+6.1;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/93.0.4577.82+Safari/537.36 – 301 0 0 1 The application /test consists of a single index.php file that echo’s the word ‘hello’. There are no url redirect rules set up in IIS. Nor

Modifying URLs on a WP webpage depending on the incoming request URL parameters

I have a specific task where I have to alter the URLs contained within a WP webpage, based on the parameter of the incoming URL request. Let’s say I have a webpage https://example.com/prefix, on that page, there are several links that point to another page, say https://example2.com/prefix So whenever someone gets redirected to https://example.com/prefix with a certain URL parameter, let’s

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. Our WebRTC script only

Advertisement