How To Make Firefox Focus on the URL not Search in a New Tab

Author: , September 5th, 2017

Set browser.autofocus to false in about:config

How To Get the URL in Javascript Without the Query String

Author: , August 29th, 2013

window.location.href.split(‘?’)[0]

How To Find the Complete Page URL in PHP

Author: , October 25th, 2012

1 2 3 4 5 $URL   = ‘http’; if ($_SERVER["HTTPS"] == "on") {     $URL   .= "s"; }   $URL   .= ‘://’.$_SERVER[’HTTP_HOST’].$_SERVER[’REQUEST_URI’]; $URL = ‘http’; if ($_SERVER["HTTPS"] == “on”) { $URL .= “s”; } $URL .= ‘://’.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];

How To Get the Current URL in Javascript

Author: , September 6th, 2012

var pathname = window.location.pathname;

How To Make SEO-Friendly URLs Using Apache mod_rewrite And PHP

Author: , December 15th, 2011

Below information copied without permission from Josh Sharp’s site because it is too valuable to lose – great work Josh, and THANKS! 1 2 3 4 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] Note: Only rewrite if the […]

How To Get The Current Path, HREF, and Title Using jQuery

Author: , June 5th, 2011

Various Ways to Obtain Various Information: 1 2 3 4 5 jQuery(document).ready(function() {      var Path = window.location.pathname;      var HREF = jQuery(location).attr(’href’);      var Title = jQuery(this).attr(’title’); }); jQuery(document).ready(function() { var Path = window.location.pathname; var HREF = jQuery(location).attr(‘href’); var Title = jQuery(this).attr(‘title’); });

How To Force Apache To Use www In The Domain Name

Author: , April 19th, 2011

1 2 3 4 RewriteEngine On RewriteCond %{HTTP_HOST} !^www.YourDomain.com RewriteCond %{HTTP_HOST} !^$ RewriteRule ^.*$ http://www.YourDomain.com%{REQUEST_URI} [R=301,L] RewriteEngine On RewriteCond %{HTTP_HOST} !^www.YourDomain.com RewriteCond %{HTTP_HOST} !^$ RewriteRule ^.*$ http://www.YourDomain.com%{REQUEST_URI} [R=301,L]

Redirecting Using CGI.pm

Author: , October 7th, 2010

To generate a redirection header in CGI.pm use the following syntax where $q is the cgi handle: print $q->redirect(‘http://wyzaerd.com/documents/resume.pdf’); If you use redirection like this, you should not print out a header as well. You should always use full URLs (including the http: or ftp: part) in redirection requests. Relative URLs will NOT work correctly.