|
just another regularban.info web blog |
| MEMBERS: | 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.
Your CSS Code is Slowing Down Your Website - How To Optimize for Speed
Did you know that your css code could be slowing down your website? Did you also know that there is a free solution out there that can help you optimize or reformat your css code for speed and readability? This article is going to explain the benefits of optimizing your css code and the reasons why all web designers should be doing it. First we need to take into account the 2 reasons why you would want to reformat your css: readability and optimization. Readability Having nicely formatted css that easily readable is very helpful when you are developing a site. Most of us (me included) can get pretty sloppy when in a hurry to develop code, and a formatter can really help out to make it more readable. On development teams where both Macs and PCs are used, sometimes line breaks are not read correctly across platforms and your css can end up all on one line. A formatter can help get your code looking pretty again. Optimization The opposite of readability is optimization. One problem with CSS is that it can get pretty file-size heavy when designing with it - especially on complex layouts. Optimizing your CSS will strip out all unnecessary characters and leave your CSS lean and mean. Optimizing css is great to do once you've finished your site and don't plan to work on the design very much anymore. The css formatter is a great tool because it can do both! You can format for readability while you are designing, optimize when you go live, and reformat it for readability if you ever need to work on it again. It's really a 'win win' thing to do.
Simple PHP Review - Real PHP Tutorials in PDF, Or a Scam?
Are you interested to find out more about the Simple PHP guide, and whether or not it is worth getting? With so many tutorials available on the internet, it can be very confusing trying to put all the information together to study systematically. This article will discuss how this scripting language works in general, and what is contained in the Simple PHP guide. 1. What Exactly Is PHP? It is a server side scripting language that can be easily combined with HTML tags. It has been reconstructed into a web language today. 2. How Does It Work? It works like standard programming language whereby it maintains the if/else condition statements, loops and subroutines. It is easily identified by the curly brackets { } used to define the start and end of statements. Users will need to use a Finally, when you are done scripting a page in PHP, remember to save the file with the extension .php, and remember that .php files can still contain HTML tags within them. 3. Why Should You Learn PHP? It is the most popular knowledge to have when you want your web pages to handle form data submitted by users. It also allows customization and building of dynamic pages. Best of all, it can connect to any SQL database, allowing you or your users to store, edit and delete any information from your web pages. 4. Review of Simple PHP Guide This guide is compiled by Robert Plank and it is essentially like a step by step course for learning this scripting language. With the abundance of information available on the internet, it is very confusing to know where to start and end. 5. What Is Contained In This Package? It lays out all the essential PHP skills in 17 chapters, complete with quizzes at the end of every chapter to test your understanding. 22 useful code snippets are included so you can stick them into your web page and be used immediately. Simple PHP guide is highly recommended if you want a full grasp of this scripting language quickly.
|
* 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). |