Showing posts with label enable. Show all posts
Showing posts with label enable. Show all posts
Monday, August 24, 2015
How to Host a Website on a Server
Enable the Web hosting software on your server. In Windows, this software is called 'Internet Information Services' and can be found in the 'Administrative Tools' section of the Control Panel, under 'Add/Remove Programs.' Check the box for 'Internet Information Services' to enable the Web server software. If you are on a Macintosh computer, you can find this in the 'Sharing' section of the System Preferences. Enable 'Personal Web Sharing' to start the Web server.
Put the home page of your website in the root folder of the Web server software. All the pages in your website should be in this folder or in folders beneath it. In Windows, this folder is 'c:\inetpub\wwwroot.' On a Macintosh, it is '/Library/WebServer/Documents' on your primary hard disk. The name of your home page file should be 'index.html.'
Test your Web server by opening the home page in a browser such as Internet Explorer (Windows) or Safari (Macintosh). You should be able to access your new Web server by using the server itself or any other computer that is on the same local network. If you are testing it on the server itself, the web address is simply 'http://localhost.' If you are on another computer, the web address will be the IP address of your computer.
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
Labels:
Click,
Edit,
enable,
file,
htaccess,
mod_rewrite,
RewriteEngine,
Type,
write
Subscribe to:
Posts (Atom)