PHP Archive

Redirects in PHP – Easy Methods for Temporary and Permanent Redirections

Redirecting an old page to a newer, or a domain to another domain, is easy in PHP and can be done using header() function. The main consideration in redirection is HTTP status code. 301 is the permanent

Creating SEO-Friendly URL from Title (WordPress like URL Slug) in PHP

The URL Slug is a converted version of a Post or an article title, comprised of small letters, numbers, and hyphens only. There are many techniques for converting the title string into the slug, and often webmasters