dimanche 30 octobre 2016

Redirect to www. from .htaccess

  Aucun commentaire

Here some lines of code that redirects from your non-www domain to your www. domain.

i.e :
I want to redirect from example.com to www.example.com

Add the code below to your .htaccess file :
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

samedi 8 octobre 2016

How to install BeautifulSoup in MAC

  Aucun commentaire

Once again here's the command that allows you to install python BeautifulSoup library for Mac.
Run the command belown in your terminal.
pip install beautifulsoup4
If you're facing problems importing the BeautifulSoup library just use the code below:
 from bs4 import BeautifulSoup
That's it!