HTTP 301 Redirect using PHP

php programming

You can use PHP header() function to do redirect. To do 301 redirect, use

For 302 redirect, use

If you need to redirect a site to new site keeping same URL structure, you can use

[…]

Read More…

Redirect a site to HTTPS using PHP

This PHP script will redirect web site visitor to HTTPS (SSL) url. You can add this in your index.php of the web site

Move a site to new URL using PHP

You can also use Apache mod_rewrite .htacess to do the redirection. […]

Read More…

Gem – Package Manager for Ruby

gem is package manager for Ruby. To get list of all install packages, run

To install a package, run

To uninstall a package, run

To search for a package, run

gem install error libxslt is missing See Ruby […]

Read More…

Python

Install Python 3.8 on CentOS 6 from source Install python 3.6 on CentOS 7 Install Python 2.7 on CentOS 6 pip Install jupyter notebook virtualenv Running Web Server with python SimpleHTTPServer Hosting Python Application in Production gunicorn Python Errors error: Python.h: No such file or directory pip install mysqlclient mysql_config: not found ERROR: Failed building […]

Read More…