|
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.
301 Redirects - When and How to Use Them
Just what is a 301 Redirect? There seems to be a lot of confusion as to what to do when you move, delete, or want to redirect incoming web traffic from an 'old' web page to a 'new' web page. A 301 redirect is the most efficient method for web page redirection from an old web page to a new web page location. There is also some confusion as to how to handle the complete move or redirection from one web domain to another web domain. According to Google, "If you need to change the URL of a page as it is shown in search engine results, we recommended that you use a server-side 301 redirect instead." How to Set Up a 301 Redirect Depending on your web environment, there are several methods to set up a 301 redirect. A 301 redirect is not that hard to implement and it should preserve your search engine rankings for that particular page or web domain. .htaccess 301 Redirection The .htaccess file needs to be placed in the root directory of your old website. In this example, we are redirecting incoming web traffic from an old domain to a new domain. Options +FollowSymLinks The .htaccess file is the most common method used for 301 web site redirection. PHP 301 Redirection You would place this code in a file at the old location. Of course with any code, you will want to test this. IIS 301 Redirection
That is all there is to it. There are other methods in addition to set up a 301 redirection which include coding for ASP, ASP.NET, Java, CGI, Cold Fusion and Ruby on Rails. The above are the most common that I've encountered. When set up correctly, a 301 redirect will preserve your search engine rankings when it is necessary to move files around or switch, or consolidate, domain names.
Importance of Website Development for a Company
You can definitely generate more business with a quality website. This may be the first line of communication between you and potential guests. A user friendly, well designed website is one of the greatest assets imaginable today for any business, organization or community group. The great advantage of website development for a company is that the website will be available 24 hours a day, 7 days a week and can be viewed from anywhere in the world. So anyone can collect suitable information from the website at any time. In today's business environment and to beat the competition large companies definitely need to develop a website. Many business owners use the excuse that their business is "word-of-mouth" and they do not need a website. But a great way to reinforce the personal recommendations of other clients is through professional website development. Website development helps your company to increase product knowledge, maintain communication between you and potential clients, sell your products or services, generate leads for the business, increase the popularity of your company and much more. Website development could provide all the information about their business, their products and also have provisions to sell their products online. Customers could be kept informed of up and coming promotions and product developments. In the world today, not having a website is like not being listed in the telephone book. A website provides added visibility and credibility among consumers. When searching for a web designing company you will want to make sure they are able to provide everything you need. If your website is e-commerce based, you will want to make sure your web design company offers more advanced features such as search engine optimization (SEO). If your business is still lacking a website it is not too late to get started. Building and marketing a website can be done at a very affordable rate. Invest in your business today.
|
* 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). |