|
just another regularban.info web blog |
| MEMBERS: | Using Perl To Convert Hyperlinks And Filenames To Lowercase
Like a lot of web developers, I'm not always that disciplined when it comes to the file naming convention I use and I sometimes end up with a situation whereby I have some files that are in lowercase, some that begin with a capital, and some that are a bit of a mixture. One web site I maintain contains about 2000 web pages and has about 20,000 hyperlinks. As you can imagine, I had one of those sinking feelings when I was told that in order to migrate the web site to a new content management system, all the file names and hyperlinks would need to be changed to lowercase. Whenever I am presented with a problem like this, my instinct is always to write a Perl script using one or more regular expressions to solve the problem. This particular situation was no exception. Change a string to lowercase The following regular expression changes all the characters in a string to lowercase. The first part of the regular expression finds a hyperlink, and the second part converts the string. (Just in case this article is not displayed correctly, there should be a single backslash in front of the 'L$1'). Change a filename to lowercase Likewise, changing a filename itself is very simple. The following two lines perform the task quite nicely: (Again, there should be a single backslash in front of the 'L$name'.) If you need more information on how to incorporate the above code snippets into a complete script, feel free to contact me directly.
Small Business Web Site Development, Design & Hosting
Anybody who wants to start a business looks for minimum investment & maximum returns, especially small businesses where capital is low. The cheapest mode of marketing your business & letting people know about your products/services is internet. That's the reason why lots & lots of small business enterprises are now looking for internet marketing as a new potential area of business. Of course, to promote your business online, you need to have a powerful website. A website is a virtual portal containing information about your company, products & services. You can either setup an online store & sell products thereon, or you can simply provide your contact information on your website, so that people can contact you for your services. In either case, it is very important that you design an attractive website so that users get drawn to it. Attractive does not mean loads of graphics & colors. But it means a site that has balance of all. A good website has a decent layout, great information & is easily accessible. Too much graphics, flash & other such factors delay the downloading of the site, which can be frustrating to user. It also means it is difficult to promote it through search engines freely. The best solution is to approach a professional company & make your goal clearer to them. For a little investment, you can get a great website ready to market. A properly designed website goes a long way to determine your online business. If you can increase your customer base online, you can then think of creating your brand offline as well. Once people start visiting your website & you offer them services/products online, you can built a base to your business wherein you can expand it offline as well. Lot of companies provide complete package for small business website development, design & hosting. These services also extend to online promotion of your site like search engine optimization services. So, in short, you can hire a company that can manage your entire online business. While choosing a company, you can either be specific about how you want your website designed, developed or hosted; or you can just provide them with your business idea. Of course, you should be prepared to offer your services/products once customers start pouring in. So, if you are planning to start a small business then developing a website is the first step you should take.
SEO and Web Site Building
If you are considering building a web site for your business, then you will more than likely like it to rank in the search engines There are many factors that influence website rankings and many of these factors can be implemented while you are creating your website. Optimizing your website properly for your business will ensure a more successful site. Have you heard the concept "Content is King"? The search engines are becoming more selective at who ranks highly and want to provide the best content for each search term. They are looking for high quality content that is continually updated and provides a quality experience for their searchers. It makes no difference whether you have a content site or a physical product site. Content is "King" as far as the search engines are concerned. By providing quality content and/or good descriptive descriptions of products you sell you will be helping your customers and you may just help yourself at ranking. One mistake many new webmasters make is to over optimize their web page by using too many keywords. If you are excessive with your keywords, your web page will not read well and the search engines my penalize you. It is considered spamming when your techniques are questionable even if that wasn't your intention. There are other techniques that are considered unethical including hiding text, and redirects. Just write for your visitor and don't try to over optimize your web page. Another thing to keep in mind that may cause you problems is the use of frames. Make sure you know how to use frames correctly before using them on your website. If the proper frame context is established, then the search engines can send visitors to your site. However if you use frames incorrectly the spiders for them will not be able to crawl your web page and or website. During web site building, you should also consider the depth of your site. Search engines have spiders that crawl through the web pages and find the necessary keywords. If you do not setup the correct linking structure throughout your website the spiders may not be able to crawl your entire site. One of the best practices when setting up your websites' structure is to include a sitemap that lists all the web pages that make up your website and then link your sitemap to your homepage. This will help ensure that the search engines can crawl your site. With proper planning and a little research you will be able to build a professional site that the search engines love.
|
* About Archives
Categories:
Last Updated: |
| regularban.info
is proudly powered by WordPress MU running
on regularban.info.
Create a new blog and join in the fun! Entries (RSS) and Comments (RSS). |