Showing posts with label RewriteEngine. Show all posts
Showing posts with label RewriteEngine. Show all posts

Monday, August 24, 2015

How to Use SSL With Joomla


Purchase an SSL certificate from your Web hosting provider or another reseller. Have the provider enable the certificate for use on your domain.
Browse to the control panel for your Web hosting account. Use the 'File Manager' to locate the '.htaccess' file in your site's root directory. Download and save the file to your computer.
Open the '.htaccess' file with Notepad or another text editor. Add the following code to the text file:RewriteEngine onRewriteCond %{SERVER_PORT} !^443$RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
Redirect permanent / https://www.yourdomainname.com
Delete the 'www.yourdomainname.com' reference and replace it with the domain name for your Joomla site. Save the file and exit the text editor program.
Open the 'File Manager' application in your website control panel. Browse to the directory on your computer where you saved the '.htaccess' file. Upload the file to the root directory of your website. Overwrite the current '.htaccess' file if prompted to do so.
Browse to the administrative page for your Joomla website and log in as an administrator.
Browse to the 'Global Configuration' link on the main control panel page in Joomla. Click the link to go to the main Joomla settings page.
Click on the 'Server' tab near the top of the 'Global Configuration' page.
Click the 'Force SSL' drop-down box and select the 'Entire Site' option. Click the 'Save' icon in the upper right corner of the 'Global Configuration' page.
Log in to the Joomla website as you normally would. Because you changed the '.htaccess' file, Joomla will now redirect normal 'http' requests to the more secure 'https' log-in page.
VPS Hosting

Sunday, August 23, 2015

How to Enable Mod


Log on to cPanel. Click on 'File Manager.'
Navigate to your root directory (public_html). Click the '.htaccess' file, then click 'Edit.'
Type 'RewriteEngine On' to enable mod_rewrite. You can use mod_rewrite to write a number of commands such as controlling access to your website and redirecting visitors (see Resources) . To redirect your domain to another directory type the following:RewriteEngine OnRewriteCond %{HTTP_HOST} ^www.domain.com$RewriteCond %{REQUEST_URI} !^/HTML2/RewriteRule ^(.*)$ /HTML2/$1Click 'Save Changes.'
VPS Hosting