Archive for June, 2010


URL Rewriting- Top 5 Ways of PHP URL Rewriting

Wednesday, June 30th, 2010

Introduction

In this era of technology enhancement, Internet has become the major source of information. If we need any kind of information, we usually consult from the Search Engines (particularly Google). Why? Because of the reason, Search Engine’s increased searching capabilities.

Thus every website owner wants now online visibility on top search engines. And for this you need to follow search engine guidelines. These are the guidelines which are helpful in the Search engine optimization of your website.

URL Rewriting is one of the good techniques followed in Search Engine Optimization. Consider more understanding of URL Rewriting and its importance:

Static URLS Vs Dynamic URLS

Static URL’s are more to be recognizable than dynamic URL’s for the number of reasons:

  1. Static URL’s generally rank better in Search Engines.
  2. Search Engines Crawls the Content of the static URLs much faster as compare to the dynamic URL.
  3. Static URL looks pretty or friendlier to the end-user.

Consider the Example of Static URL’s Vs Dynamic URL’s:

Static URL/Pretty URL:

http://www.design.com/web design/custom web design

Dynamic URL:

http://www.example.com/web design.aspx?design=custom&ID=2065

The above mentioned Dynamic URL has the following problems discussed below:

  • When this URL is crawled by the Search engine, it will have very less chance to become on top ranks because the URL do not defines what the page is all about, thus cannot become visible for any keyword.
  • The type of URL exposes the underlying technology; in this case it is Asp.net.  This can give clue to the potential hackers about what data they should send along with query string for a front door attack to the website. So technology extensions should keep hide from the web pages.
  • The type of URL contains the sticky elements like question mark & ampersand. Those special characters included in the URL are problematic in the case when another website owner will link to your website using this URL it can have issues with their xHTML.
  • Some of the Search engines do not crawl or index those pages whose URL’s are dynamically generated.  They’ll see the question mark in the URL and just turned back if they found it.

URL Rewriting Methods:

Readable URL’s are not only demanded by the Search Engines but by the humans as well. The reason is Search Engines are made for human beings not for Machines.

Consider the Example of How URL can be Rewrite for the Search Engines Optimization of your website:

Case to consider:

http://www.yourdomain.com/profile.php?mode=view&u=7

There are two ways by which this dynamic URL can be rewrite:

Methods Default Format


After Rewriting
Single Page URL http://www.yourdomain.com/profile-mode-[VALUE]-u-[VALUE].html http://www.yourdomain.com/profile-mode-view-u-7.html
Directory Type URL http://www.yourdomain.com/profile/mode/[VALUE]/u/[VALUE]/ http://www.yourdomain.com/profile/mode/view/u/7/

URL Rewriting in PHP

There are the following requirements for Rewriting the URL in php:

Index Requirements
1 mod_rewrite module must be loaded in apache server.
2 Need to enable FollowSymLinks option otherwise you may encounter 500 Internal Server Error.
3 After that you need to create a .htaccess file in the root folder of your web directory.

Consider the Five different aspects of URL Rewriting Examples:

1. Rewriting the test.php to test.html

Add the following code into the .htaccess file.

Options +FollowSymlinks

RewriteEngine on

RewriteRule ^(.*)\.htm$ $1.php [nc]

After placing the code, when the URL like http://localhost/test.htm is called in address bar it calls the file test.php.

Here:

$1=First regular expression of the part of the RewriteRule

[nc]= not case sensitive

2. Rewriting product.php?id=12 to product/ipod-nano/12.html

In this technique, you can smartly place the keyword in the url. Like in the above mentioned url, ipod-nano is the product name which is placed in the url after rewriting.

RewriteEngine on

RewriteRule ^product/([a-zA-Z0-9_-]+)/([0-9]+)\.html$ product.php?id=$2

3. Redirecting without  www URL to www URL

Sometimes you might have noticed that when you type yahoo.com, you will be redirected to the www.yahoo.com. If you want this type of URL Redirection you can use the following code:

RewriteEngine On

RewriteCond %{ HTTP_HOST} ^optimaxwebsolutions\.com$

RewriteRule (.*) http://www.optimaxwebsolutions.com/$1 [R=301,L]

4. Rewriting yourdomain /user.php?username=xyz to yourdomain.com/xyz

By the code mentioned below, you can rewrite your URL according to the Method of Directory type as mentioned above in the heading URL Rewriting Methods.

RewriteEngine On

RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1

RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1

5. Redirecting the domain to a new subfolder of inside public_html.

Consider the case: If you want to redevelop your site, you can place the new site into the folder named new. It means all the files of redeveloped site is placed inside the root directory of folder named new. Here you need to understand that there can be a mess to paste all the files in the root folder (or can be a hectic process), so we don’t have this option. It means now your website can only be assess by “http://www.test.com/new”. So after placing the following code into the .htaccess file , you can access “www.test.com”, whose files are actually placed in the new folder.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^test\.com$ [OR]

RewriteCond %{HTTP_HOST} ^www\.test\.com$

RewriteCond %{REQUEST_URI} !^/new/

RewriteRule (.*) /new/$1

Company Profile:

We as a Leading Web Design Company Offers Best and Cost effective Web solutions to our clients in Australia. I being as a Project Manager: Piyush Kotadiya is available for your support, you can drop me an email at piyush@dreamconsultancy.com.au, And can Call Us by visiting our website http://www.dreamconsultancy.com.au

We implement your needs and requirements with the use of latest web trends and technologies in an effective way.

 URL Rewriting  Top 5 Ways of PHP URL Rewriting

Related Articles:



image001 URL Rewriting  Top 5 Ways of PHP URL Rewritingimage002 URL Rewriting  Top 5 Ways of PHP URL Rewriting

5 Different Ways to Approach a Website Redesign

Sunday, June 20th, 2010

How do you plan redesign of your website?

I guarantee that at some point in your website will need redesign of  an existing site. It’s a fact of life in the web industry: more often than not a new website will simply be an iteration of an old website.

So how do you approach this mammoth task? You’ll not have to wonder long, as here are 5 different ways to approach a redesign.

1. A Redesign

The most basic. A redesign is simply slapping a new face on an old site. Fundamentally the structure stays the same, but this isn’t necessarily a bad thing.

This approach is ideal if you’re happy with the content and structure of the website, but you just feel that the design itself is a little out of date.

2. A Restructuring

As the name suggests, a restructuring involves pretty much leaving the design the same, but changing the way the content of the site is structured.

If you’re happy with your design, but you feel that the structure and flow of your site could be improved, then this is the approach for you.

3. A Rethinking

More drastic than the redesign and restructuring before it, a rethinking really is stopping and revisiting the purpose of your site, and making changes to the design, content, and structure individually to insure that the site stays true to its revised goal.

A rethinking is the web design equivalent of a mid-life crisis, albeit a good, constructive one.

4. A Realignment

This topic has been discussed by many designers in detail, but that doesn’t mean it’s not a good one. Realignment involves looking back and remembering the original goal of the site and then making changes to the structure and content to stay true to that original goal.

But it can be so much more than that.

A realignment can also take into consideration the changes that have occurred in the web since the original site was launched.

5. A Rebranding

The most design oriented of the five, a rebranding involves redesigning every bit of your brand. Be this logo, website, business card, letterhead or all of the above, the rebrand is the best way to completely change the way you market the website or business.

Mix and Match

Whether you just want to update some content, or completely re-imagine your site, there’s something here for everyone. However, there can never be one option to fit everyone, just like everything in life, you can take a little bit here and there to make a good match for your website.

I wish you good luck in the redesigning of whatever website you choose, and I hope that however you choose to approach it, it turns out well!

Get your business Online! Click here to request a FREE Web Design Quote.

Related Articles:



image001 URL Rewriting  Top 5 Ways of PHP URL Rewritingimage002 URL Rewriting  Top 5 Ways of PHP URL Rewriting

Real Estate Website Design and Internet Marketing

Tuesday, June 15th, 2010

Did you know your website can be your most effective marketing tool?

Nearly 90% of real estate transactions start online!

Most prospective real estate buyers, sellers and investors rely heavily on the internet for their research. It is now more important than ever to make sure your real estate website is easy to find online.

A well designed website with all the features needed to effectively market real estate, such as property alerts and e-newsletters, is like having your shop front open 24 hours, 7 days a week.

With savvy buyers aggressively looking on the internet for the best properties and with limited time, real estate agents need to have a website that provides exactly what they are looking for with minimal clicks, inventory, inventory and more inventory. An agent website is no longer an option. In order to compete in today’s market, it’s a necessity.

What should your real estate website do for you?

Investing on a real estate website design requires you to be an educated consumer in order to hire the right real estate web design company that will help you acheive your online marketing goals and establish a long lasting business relationship. If you are looking for an agent website to put on an email signature or to place on your business card, then your choices are endless. However, if you are looking for a serious real estate web design company that will provide you a serious marketing solution, these are the most important factors that a successful website design should achieve:

  1. Your website should generate new business
  2. Service your existing client base and sphere of influence
  3. Brand you as a local real estate expert
  4. DOMINATE your local market

What’s so special about Dream Consultancy’s Real Estate Web Design?

The answer is simple, we have a top-of-the-line real estate web design product used by some of Australia’s top producing real estate agent. Our results speak for themselves. Most importantly, very few companies offer an integrated real estate property web design  product that is designed 100% to generate search engine traffic, targeted internet traffic that converts online real estate leads into sales.

 URL Rewriting  Top 5 Ways of PHP URL Rewriting

Related Articles:



image001 URL Rewriting  Top 5 Ways of PHP URL Rewritingimage002 URL Rewriting  Top 5 Ways of PHP URL Rewriting