Showing posts with label htaccess. Show all posts
Showing posts with label htaccess. Show all posts

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

Thursday, August 20, 2015

How to Get Rid of Viruses on a Website (5 Steps)


Check that your anti-virus and anti-spyware software is up to date. Run a system scan if you receive an alert while browsing your website. Delete any spyware or virus traces from your computer and do not load the website in any browser (Internet Explorer, Firefox, or Chrome) until the malicious code is cleaned out.
Login to your website's control panel and click on File Manager. Select 'Show hidden files' and click on public_html (or root on some systems). Allow for file and folder lists to update and look for the .htaccess file inside of your public_html folder. Click on .htaccess and select 'Edit' or 'HTML Editor.' Browse the file once a new window opens up, and look for any malicious redirect code or HTML code that indicates an
. Delete those codes and save .htaccess file.Use the alternative method of uploading a blank .htaccess file to public_html. Open up Notepad as a new document. Click on 'Save as' and select 'All files' under 'Save as type.' Type in .htaccess as File Name and click on 'Save.' Upload the new file and select 'Overwrite' when prompted.
Download all HTML and PHP files from public_html to your computer. Create a folder on the Desktop named 'Website' and use the Download feature on your FTP program to move the files from public_html to the newly created folder. Open up files such as index.php or index.html in Notepad, by right clicking and selecting 'Open With' and 'Notepad.' Look for malicious code that starts with
,
or any
tags. Delete the entire line of code and save the file. Upload cleaned out files back to your public_html using an FTP program and select 'Overwrite' when prompted.
Delete any free scripts from your HTML pages, especially counters, guestbooks and any widgets. Free scripts can contain virus coding and redirects, as well as sponsored pop-ups that can be falsely read as viruses by your anti-virus program.
Update all scripts and programs that are installed on your website. Go back to the website's control panel and click on 'Site Software.' Check if there is anything listed as 'Installed.' Select 'Update' on the right hand side and follow instructions. Go back to main menu and click on 'Fantastico DeLuxe' (if available) and repeat the same procedure. Manually upgrade any scripts that have been installed through an FTP program by you directly. Download the updated version or patches from the developer site and update according to directions.
VPS Hosting