Tagged: url

Get current URL in PHP 0

Get current URL in PHP

Sometime, you need to get a current page URL that is shown in the browser address bar. Here is a small code to get the current url. $url = (!empty($_SERVER[‘HTTPS’])) ? “https://”.$_SERVER[‘SERVER_NAME’] .$_SERVER[‘REQUEST_URI’] :...

Rewrite dynamic URL to static URL in PHP using .htaccess 0

Rewrite dynamic URL to static URL in PHP using .htaccess

When search engine visits the dynamic url site i.e http://sumitbansal.com/category.php?p=10, so it does not gives the more importance to this page because it keeps on chainging. So we convert the dynamic URL to static...