Saturday, 7 February 2015

How to change your default Index page in htaccess in Magento-Cpanel

Posted by with No comments
The server looks for specifically named files as the first page of your website, also known as the index page. The default order of index file names our particular servers look through is index.htm, index.html, index.php, and finally default.htm. You can change the name of the index file your account looks for by altering the .htaccess file. Perhaps you want to have a specific custom name for your index file or maybe you are migrating from another host and the index page is named differently. This way your internal links will not be broken by renaming the index file.

What is an htacces file?

The .htaccess file is a hidden text file within your hosting account that can be very powerful. It is designed so that you can modify it to change the behavior of your website that normally would take higher access beyond your account. It acts as a liaison between your domain and the server and can perform many functions.
Learn more about htaccess

Changing your default index file via htaccess

  1. First, you will need to log into your cPanel to access the htaccess file.
  2. Find the Files category and click on the File Manager icon.
    cpanel
  3. A popup box will appear. For the primary domain, click on the Web Root radio button. For addon domains, click on the dropdown and find your desired addon domain name. Be sure the checkbox next to Show Hidden Files is checked. Click the Go button to enter the File Manager.
    file-manager-show-hidden
  4. You should now be in the root folder of the domain you chose. Look for the .htaccess file and right click on it. This brings up a menu. Find and click on the Edit option. If you get a popup box, simply find and click the Edit button in the lower right corner to continue to the editor.
    file-manager-htaccess
  5. You are now in the htaccess editor. Paste the following code at the top of the page to configure your desired index page. In our example below, we decided to make the index page of our folders named first.html.
    #Alternate default index page
    DirectoryIndex first.html
    You can also list more than one file in the configuration. The file will be read left to right and check for them in that order. In this example, we add index.htm, index.html, and index.php to the list. First the server will check for first.html, if it does not find a file with that name, it continues to index.htm and so on.
    #Alternate default index pages
    DirectoryIndex first.html index.htm index.html index.php
  6. Be sure to hit the Save Changes button in the upper right corner to save your new htaccess configuration.
Souce From : http://www.inmotionhosting.com/support/website/htaccess/htaccess-change-index-page

Friday, 6 February 2015

Display Website with Menu Structure on Google Result Page

Posted by with No comments

Google’s new extended Sitelinks are sending Webmasters scrambling to find out how they too can secure more virtual real estate on the world’s most popular search engine – now estimated at well over 60-percent market share. So, are there any tricks to making sure your site is returned with the highly coveted extended Sitelink? Yes, there are. Let’s expose the secrets to getting extended Sitelinks.

It is difficult to know what signals Google uses in its Sitelinks algorithm, but a close inspection of the search result pages for queries which return an extended Sitelinks – and a thorough look at the Google Webmaster Guidelines – do provide us an opportunity to make some reasonable assumptions. There are in fact several signals that websites should consider addressing if the allure of extended Sitelinks is too much to ignore.


KNOW THE MOST POPULAR SITE SECTIONS

Based on the current research, it seems that whether Google includes Sitelinks is heavily dependent upon the behavior of users. Since search results page listings include tracking info, Google can/could easily determine which pages or categories of your site are most frequently visited. Thanks to this click stream data, Google is able to improve its search results and give users direct access to the sections of your Web property which are of the greatest interest or importance. Google generates sitelinks automatically but with a little strategic thinking, it is possible (somewhat) to influence extended sitelinks. If you don't already know the most popular sections of your website, it's time to dig into your website analytics.


THE NAVIGATION IMPERATIVE

Perhaps most noteworthy within the Webmaster Guidelines is the recommendation to make a site with a clear hierarchy and text links. If Google cannot understand what sites or individual sub-pages are about, it is unlikely that extended Sitelinks will appear. To increase the likelihood of extended Sitelinks appearing for your site on important queries, consider rethinking navigation.

For example, consider refining the navigation to include but a handful of the most important links. Fewer navigation choices will help you funnel users to specific destinations, and giving Google enough click stream data to make some choices on your site’s behalf. Take a look at Apple.com’s navigation, and then at the extended sitelinks Google has returned on the search results pages, and tell me that there is no correlation between navigation links and the sitelinks that returned.

PAGE TITLES & PAGE NAMES PROVIDE CLEAR SIGNALS

Google needs not look very far for perhaps the strongest signal of a page’s worthiness to be included in Sitelinks. SEOs should focus much of their energy on the quality of page titles (keeping them brief but accurate) and doing the same for the actual file names of pages as both are strong signals that specific pages are of importance. Take a look at the Ameritrade example below. See how the titles are short in length? That is certainly one good indicator. But dig deeper into the “Rates & Fees” Sitelink and you’ll see that the page itself is named ratesfees.html. If the aim is to obtain extended Sitelinks, considering a site’s naming conventions (titles and pages) is a vitally important task.

ANCHOR TEXT OF INTERNAL AND EXTERNAL LINKS

Another opportunity is to ensure that the internal links within your site and external links pointing to your site from third-party websites use an appropriate keyword anchor text. The aim should be to identify which pages are most representative of the site in question, and to set about acquiring a mixture of links with the keyword or key phrase anchor text you want to have your site appear with extended Sitelinks.

Extended Sitelinks are obviously a new addition to the search results pages of Google, so expect development to continue over the next several months and years. As it stands today, the sites of well known (established) brands are those which are receiving the extended Sitelinks. Take the necessary steps today to acquire extended sitelinks and you will likely be pleased at the virtual real estate you secure on the search results pages.
- See more at: http://www.websitemagazine.com/content/blogs/posts/archive/2011/08/23/google-s-extended-sitelinks-exposed.aspx#sthash.HjP7hhM9.dpuf

How to remove a watermark from a PDF file With Software And Command Prompt?

Posted by with No comments

I thought this would be a simple task, but it turned out the other way.

The watermark is the very same (overlapping, but transparent) image on every single page. I created the PDF file myself (so no copyright worries here) using PDFCreator 0.9.8.

I have already tried my friend's Adobe Acrobat Pro, but it didn't work. It tries to remove it, but it can't. I tried to remove header/footer, etc., but the watermark just won't disappear. 

For image-based watermarks, there are several tools that promise their automatic removal. For example:

All of these are free to try, but require a license to actually produce the desired output.

A less time-consuming solution would be to "manually" remove the watermark. We need:

Steps

  1. Download Pdftk and extract pdftk.exe and libiconv2.dll to %windir%\System32, a directory in the path or any other location of your choice.

  2. Download and install Notepad++.

  3. PDF streams are usually compressed using the DEFLATE algorithm. This saves space, but it makes the PDF file illegible.

    The command

    pdftk original.pdf output uncompressed.pdf uncompress

    uncompresses all streams, so they can be modified by a text editor.

  4. Open uncompressed.pdf with Notepad++ to reveal the structure of the watermark.
    In this specific case, every page begins with the block
    q 9 0 0 9 2997 4118.67 cm
    BI
    /CS/RGB
    /W 1
    /H 1
    /BPC 8
    ID Ÿ®¼
    EI Q
    
    and nearly 4,000 blocks just like this one. This particular block sets only one (/W 1 /H 1) of the watermark's pixels.
    Scrolling down until the pattern changes reveals that the watermark's stream is 95,906 bytes long (counting newlines). The exact same stream is repeated on every page of the PDF file.
  5. Press Ctrl + H and set the following:

    Find:               q 9 0 0 9 2997 4118\.67 cm.{95881}
    Replace:            (blank)
    Match case:         checked
    Wrap around:        checked
    Regular expression: selected
    . matches newline:  checked 
    

    The regular expression q 9 0 0 9 2997 4118\.67 cm.{95881} matches the first line of the above block (q 9 0 0 9 2997 4118.67 cm) and all following 95,881 characters, i.e., the watermark's stream.
    Clicking Replace All removes it from all pages of the PDF file.
  6. The watermark has now been removed, but the PDF file has errors (the streams' lengths are incorrect) and it's uncompressed.
    The command
    pdftk uncompressed.pdf output nowatermark.pdf compress
    
    takes care of both.
  7. uncompressed.pdf is no longer needed. You can delete it.
The result is the same PDF without the watermark (and about half the size).

 

PDF Password Remover Online

Posted by with No comments