 |
Ask Marketing Experts search engine marketing forum Free search engine marketing advice
|
| Author |
Message |
admin Site Admin
Joined: 11 Feb 2003 Posts: 310 Location: Los Angeles
|
Posted: Thu Mar 27, 2003 10:15 pm Post subject: Creating search engine friendly URL's |
|
|
If you use a scripting language to create your website, it is a good idea to consider your directory structure and create a search engine friendly site. This example works with linux/apache servers.
All you need to do is create an .htaccess file and place it in the root of your webserver.
The contents of this file would look something like this:
[code:1:6bb4f63269]RewriteEngine On
RewriteRule (.*)([0-9])*\.php$ dynamicfile.php?variable=$1 [PT]
[/code:1:6bb4f63269]
this code would change this string:
www. site.com/dynamicfile.php?variable=var1
to this
www. site.com/var1.php
This link gives a general understanding of the mod_rewrite module for the Apache Server to be able to make some strides on doing it on your own. [url]http://www.heise.de/ix/artikel/E/1996/12/149/[/url]
.htaccess Tutorials and working with subdomains. This link helps convert that friendly URL back to the proper querystring your database can decipher.
[url]http://help.powweb.com/tutorials/htaccess/subdomain.php[/url]
With a little use of mod_rewrite you will have search engine friendly URL's AND URL's that are easy to remember and send to people.
Last edited by admin on Mon Apr 24, 2006 11:22 am; edited 1 time in total |
|
| Back to top |
|
 |
admin Site Admin
Joined: 11 Feb 2003 Posts: 310 Location: Los Angeles
|
Posted: Fri Oct 24, 2003 7:20 pm Post subject: more information |
|
|
For windows users: if you use ASP script + use this ISAPI_rewrite tool
http://www.isapirewrite.com/ |
|
| Back to top |
|
 |
|
|