Click to go to USFreeAds' website
About
This website is all about strategies to help you grow your niche store empire. I have many Build A Niche Store sites and use the strategies that I share here.
Newsletter
Subscribe to my posts and get all of the latest tips and strategies sent directly to your email!
Delivered by FeedBurner
RSS Feed
Get the most recent posts and comments sent to you directly by subscribing to my RSS feeds!
Subscribe to RSS! Subscribe to RSS Comments!

Jan
30

How to edit files such as .htaccess and FrontControl.php

RochelleHow To...

Many of my ‘How To…’ instructions tell you to edit files such as .htaccess or FrontControl.php. This is easy enough to do when you know what I’m talking about but if this makes you stare hopelessly at your computer screen don’t dispare. I’ll tell you exactly how to do this.

Some files can be edited through your BANS Admin. The files that you can edit through your site’s Admin (by going to the template you’ve chosen for that site) are:

  • Footer
  • Header
  • Logo
  • Styles.css

Then there are files you may want to edit that you cannot access from your Admin. These files include:

  • .htaccess
  • /cont/cont.php
  • /cont/FrontControl.php
  • index.php
  • robots.txt
  • sitemap.php

You can modify these files through your hosting account’s File Manager but not all of them can be seen (yes, some hosting accounts hide certain files like .htaccess). Plus this is a tedious way to edit files. The better way is to use a FTP.

The FTP I recommend is CoffeeCup Direct FTP. (You can read my review of CoffeeCup Direct FTP at http://www.nichestorestrategies.com/the-best-ftp-ive-used/.)

When you want to edit a file that you can’t access from you Admin you can easily follow these instructions. I have written instructions using CoffeeCup Direct FTP. If you choose to use a different method then the steps will vary from what follows.

 

My instructions to Edit any File (via CoffeeCup Direct FTP):

Step One
  Open CoffeeCup Direct FTP and navigate to the file you want to modify. For instructional purposes I will show you how to edit .htaccess, which is inside your site’s root folder (where your site’s index.php is located) but you can use these instructions to edit any file on your site:
Image of folder with site's index.php file
Step Two
  Right-click on .htaccess and choose, “Edit.” This will open the file in the ‘File Editor’ at the bottom:
Image of .htaccess and where you can edit the file
  Go down to the bottom where you file is now open for editing. Click anywhere in the document you opened so you can see your mouse blinking in the document. Select the entire document (Windows CTRL+A, Mac CMD+A):
Image of .htaccess selected so you can copy it
Step Three
  Open Notepad (or equivalent but don’t use a word processing program as it might muck up your code) and paste the code there. If you make a mistake in the following steps you now have your original code to return to.
Step Four
  Make your changes and then click on the ‘Save’ button on the ‘File Editor’ bar to save your changes:
Image of the 'Save' button on the 'File Editor'
Step Five
  View your site to make sure there are no error messages. If there are you can easily fix them by pasting the original code from your Notepad back to the .htaccess file by following the above steps and then try again.
.

That’s it! It is quite easy to edit any file once you know how to do it.

A word of advice - Any time you edit a document, whether in Admin or via FTP, it is ALWAYS a good idea to make a copy of the code you want to edit before you make any changes. That way you can easily undo any errors you may accidentally create. Mistakes and errors happen to the best of us no matter how careful we are.

Rochelle

Related Posts:

  • How to Partially Restore Files or Folders
  • The Best FTP I’ve Used
  • How to Correct the Size of Auction Images on your Site
  • How to Change the ‘View more items on eBay’ Wording
  • How to Add Permalinks (or Link-Backs or Trackbacks) to your Site
  • How to Add A Robots.txt to your site
  • How to Add a ‘Contact Us’ Form to Your Site
  • How to Add Mark’s Sitemap to Your Site
  • How to Move a Site from a Subdomain to a New URL
  • How to remove the ‘Contact Us’ link from sidebar and add it to the footer
  • RSS feed | Trackback URI

    14 Comments »

    Comment by Paul
    2008-05-05 06:38:14

    I’ve been using the free, open source FileZilla for a few years and it has always performed flawlessly.

    It is fast, easy to use, and you can store all of your domains and server information right in the program.

    You can drag and drop files right from your desktop.

    Just Google the term filezilla and you can easily find a download site.

    Pauls last blog post..Sears PurchaseProtect! A New Way For Sears To Get Your Money

     
    Comment by Rochelle
    2008-05-06 10:55:54

    Paul,

    I’ve also recently found CoreFTP, which is another great FTP program.

    Rochelle

     
    Name (required)
    E-mail (required - never shown publicly)
    URI
    Subscribe to comments via email
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

    Trackback responses to this post