Skip to content
Advertisement

Tag: url

How to find out from what URL a user came from

I work at a company, lets call it ‘A’, that got taken over by company ‘B’ but basically still is its own company. Now I have made an application, but my boss and I thought it would be a nice idea to change the design of the page depending on from which of the two company’s the user is from.

set urls with parameter to noindex in wordpress?

I’m looking for a solution to set all URLs which uses the parameter ‘?’ to noindex. I look for a php solution which I could use in the header.php in Wordpress or in the .htaccess. I tryed this: This solution did not work and URLs with the parameter ‘?’ didn’t get a noindex attribute. Best regards Answer You can use

Get Last Part of URL PHP

I’m just wondering how I can extract the last part of a URL using PHP. The example URL is: Now how can I extract the final part using PHP? There is always the same number of variables in the URL, and the id is always at the end. Answer You can use preg_match to match the part of the URL

Advertisement