Web

5 Readability Errors by Web Designers

Fadıl

Here are some of the mistakes that make your web page hard to read:

Low Contrast

Grey text on white background may look cool (I used it once till my readers complained) but your visitors will be squinting by the second paragraph (or worse, leaving your site). Go for high contrast to ensure your text is as readable as possible. Black text on a white background provides the best readability. White text on black is the next best option.

Setting Up URL Rewriting for Apache in Linux

Fadıl

Search Engine Friendly (SEF) URL’s are very common today with the widespread use of content management systems (CMS).

These are URL’s that looks like http://www.website.com/about as opposed to the conventional http://www.website.com/about.html.

A SEF URL in a CMS would replace something like <http://www.website.com?id=34>.

The advantages of SEF over conventional URL’s is that they are shorter and easier to send to people, and they also increase the security of a web site by hiding components are being used on a page. In its webmaster guidelines, Google recommends caution in using dynamic web pages:

How to Configure Your Website Using htaccess in Linux with Apache Step by Step

Fadıl

.htaccess files (or “distributed configuration files”) provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.

Step by Step

For this to work successfully you will have to be logged in as root or using one of the sudo or su options.

Step 1:

We will need to create a folder that will have to be authenticated. Since the default location in Apache is /var/www/html we will create it here. You will do this by using the mkdir command.

To Redirect http to https using .htaccess file

Fadıl

Method 1.

How to redirect HTTP to https using a .htaccess file
step 1:

Login into ur cpanel and flow

step 2:

public_html —–>.htaccess ——> code editor click —–> edit

step 3: .htaccess file click

# http redirect to https - https://www.techsoftcenter.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Son: http redirect to https - https://www.techsoftcenter.com

Method 2.

precise routing for WordPress sites

# BEGIN HTTPS Redirection Plugin
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule>
# END HTTPS Redirection Plugin

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] </IfModule>
# END WordPress

# Begin HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.SİTENİZ.com/$1 [R,L] </IfModule>
# END HTTPS

Method 3.

A word from the WordPress menu, the general tab in the HTTP is converted to https.