Showing posts with label index. Show all posts
Showing posts with label index. Show all posts

Monday, August 31, 2015

How to Detect Mobile Browsers (11 Steps)


Download the 'Detect Mobile User Agents & Browsers' PHP script by clicking on the link located in the 'Resources' section below. The downloaded file is compressed. Double-click on it to open your default extraction program and extract the files to your desktop.
Open an FTP (File Transfer Protocol) program and log in to your website's hosting account by typing in your FTP address, username, and password. Once you have connected to your hosting server, use the FTP program to upload the 'mobile_device_detect.php' file that you extracted in step 1. Upload it to the root directory of your website where your 'index.html' or 'index.php' file resides.
Use the FTP program to download the 'index.html' or 'index.php' file from your website and save it on your desktop. Open the file in a text editor such as Notepad or Wordpad.
Open a web browser and type 'http://detectmobilebrowsers.mobi/" into the address bar, then press the ENTER key. Alternately, you can click the 'Detect Mobile Browsers Website' link in the 'Resources' section below.
Scroll down to the 'Function Generator' heading. Here we will generate a PHP function code that will define how the PHP code file we uploaded in step 2 will behave. Choose an option from the respective drop-down menus for 'Detect iPhones,' 'Detect iPads,' 'Detect Android Devices,' 'Detect Opera Browsers,' 'Detect Blackberry Devices,' 'Detect Palm Mobiles' and 'Detect Windows Mobile Devices'. Each drop-down menu will allow you to specify whether to treat the device browser like a mobile browser or a standard desktop browser. You may also choose to redirect a device type to a custom URL, which must be typed into the text field that appears below the drop-down menu when you choose the 'Redirect (device) to a specific URL' option.
Choose an option from the 'Redirect Mobile Browsers' drop-down menu. Any devices that were set in the above options to be treated like a mobile browser will be affected by this option. You can redirect mobile users to a custom URL where there is a mobile browser-optimized version of your website or choose not to redirect them, which will allow them to access the standard website. Type the mobile-optimized website URL into the provided text box.
Set the 'Redirect Desktop Browsers' drop-down menu to 'No - Do not redirect desktop visitors - function will return false' to allow desktop browser users to access the standard website. Any devices that were set in the above options to be treated like desktop browsers will be affected by this option.
Click the 'Generate Code' button. Highlight the text that appears in the 'PHP Code' box and press CTRL+C on your keyboard to copy the text to your clipboard. Minimize your web browser so you can see the 'index.html' or 'index.php' file you opened in the text editor in step 3.
Create a blank line at the beginning of the text document by clicking your mouse at the top of the document and pressing the ENTER key. Place your cursor on the blank line and type '
' and press ENTER again.
Click on the 'File' menu at the top of the text editor and choose 'Save'. In the FTP program window, copy the edited 'index.html' or 'index.php' file back to the root directory of your website, overwriting the original file.
Access your website from a mobile device browser. You should be redirected to you mobile-optimized website. Access your website from a standard browser to make sure that you are directed to the standard website.
VPS Hosting

Thursday, August 27, 2015

How to Upload an HTML Theme From ThemeForest


Download your theme or template from your ThemeForest downloads page. Click on your account name in the upper-right of their Web page. Unzip the file to an easy-to-find location on your hard drive.
Open the theme folder. In most cases, the files you need to edit and upload to your Web space are located in a sub-folder under the theme's name. Locate the 'index.html' file and open it in Notepad or an HTML editor. HTML editors are preferable, as they allow you to view the design of the theme and make changes without knowing HTML. The main value you want to find and change is the page title, and possibly the copyright text. The title is located near the top of the document, between '
' tags. The copyright text is likely located at the very bottom.
Access your Web space using your host's Web control panel, or an FTP program. If your Web space does not put you in the root of your domain by default, you may need to open the 'htdocs' or 'www' folder to access your site root. Refer to your host's documentation for how to find your website folder if needed.
Upload the edited contents of your theme's Web files folder to your website folder by dragging the files from one window to the other, or selecting them in your control panel and clicking 'Upload.' The HTML files must be in the main website folder and not in a sub-folder. For example, your website structure may have an index.html and contact.html in the root folder, and an 'images' sub-folder.
Type your URL into your Web browser to test your webpage. If the files were uploaded to the correct place, you should see your main page, or index.html file. Continue to make changes to the files using your text editor, then upload them to view the updated pages.
VPS Hosting

Wednesday, August 26, 2015

How to Remove a Parked Domain (4 Steps)


Upload a website to the domain's hosting account. The parked domain page may disappear as soon as the owner's own information is added to the domain.
Delete the parked domain page on the server. Log in to the domain's hosting account and physically delete the parked page that was provided by the web host. Access the list of files by using an FTP program, such as one provided to you by the web host, or a free one that must be downloaded, such as FileZilla. Navigate to the 'index.html' file, right-click and choose to 'Delete.' This step is often necessary if the server is automatically set to run an HTML page over other extension types. In this case, even uploading a new 'Index' page with a PHP extension will not override the parked page until it has been deleted.
Change the parked domain's settings in the domain control panel. Log in and choose to turn off the domain parking. The action will vary depending on the domain provider. Navigate to a 'Manage Domains' section and click a button to 'Remove Domain Parking' or to 'Activate Domain.'
Choose to forward the domain name to another website and domain. Forwarding or masking will activate the domain instead of placing it in parked mode. Log in to the 'Manage Domains' menu and select the option to 'Forward.' Enter the domain you would like to forward it to and save.
VPS Hosting

Saturday, August 22, 2015

How to Create a Multipage Website


Decide what pages your website should actually have. Starting out with a plan will save plenty of time later. For example, a basic website might consist of three pages: a homepage, an 'About' page, and a photo gallery.
Open a text editor such as Notepad (in Windows) or TextEdit (on a Mac) and create a new file for each page you plan on including. When saving each file, make sure to save them with a '.html' extension, and name your homepage 'index.' So using the above example, you would create three pages: 'index.html,' 'about.html,' and 'gallery.html.'
Think of a domain name ('example.com') to name your site. Come up with something easy to remember, as brief as possible, and spelled correctly.
Sign up for a web hosting plan. Since this is a very basic site, you won't need to pay for anything fancy, and in fact you can get a hosting plan for free from sites such as FreeHostia (see Resources). When signing up, you'll be able to register your domain name, which should cost about $10 for a year.
Log into the hosting control panel that your web host provided you after you signed up. Inside, there should be a 'File Manager' section. Open it, and look for a folder either named 'public_html' or named after your domain. Upload all your HTML files inside it.
Open a new browser window and type in your domain name in the address bar. The page that's automatically displayed will be 'index.html,' and you can reach your other pages by going to example.com/about.html, example.com/gallery.html, and so on.Of course, unless you've added something to each page, they're blank. To actually fill your pages with content, you'll need to write some HTML code, which is the basic language of the web and very easy to learn (see Resources for free HTML tutorials).
VPS Hosting

Thursday, August 20, 2015

How to Set Up Your Own Web Site (5 Steps)


Register a domain name with an Internet Corporation for Assigned Names and Numbers (ICANN)-licensed domain registrar. NetworkSolutions.com, Domain.com and BuyDomains.com are three top domain registrars. Choose a domain name that contains keyword phrases related to the topic of your web site to help the search engines accurately index and categorize your web site.
Buy a web site hosting account. Choose from among reputable web hosting companies. Lunarpages.com, Rackspace.com and FireHost.com are three such companies. They offer affordable web hosting packages with many powerful features.
Assign your Domain Name Servers or DNS to your domain name. Your web host will provide primary and secondary DNS addresses. Take these to your domain registrar and assign your domain name to these DNS addresses. This will point your domain name to your web host, so your visitors will be able to see your content. Each domain registrar has a different interface, so follow your chosen domain registrar's specific instructions for defining your Domain Name Servers.
Create your web site layout. You can use Cascading Style Sheets or CSS to define the colors, fonts and layout of your site. CSS is a bit technical but is a powerful and versatile layout technology. Another option is to use pre-made templates. Most web hosting companies provide a collection of templates for your use. A blog platform like WordPress is another powerful way to organize and display your content. WordPress is included in most web hosting packages. It's easy to install and offers a wide variety of themes.
Create your content. The purpose of any website is to present visitors with quality, interesting content. Write your content and use the interface provided by your web host to upload your content to your site. Consider adding images and video to your site, as well.
VPS Hosting