|
|
|
| |
Welcome
Time Now: Sat Nov 21, 2009 2:20 am
All times are GMT
|
|
|
|
|
|
|
|
|
|
| |
SEO 1 Forums
>
Mod Rewrite >
What the Hell is a Mod Rewrite?
Andrew
Senior Member

Joined: 21 Feb 2005
Good Posts: 994
Location: apache/domlogs |
| What the Hell is a Mod Rewrite? |
|
|
Mod Rewrite
"Despite the tons of examples and docs, mod_rewrite is voodoo.
Damned cool voodoo, but still voodoo." - Brian Moore cmc.net
The popular Apache web server for UNIX provides a very powerful and useful module known as mod_rewrite, which provides a means for webmasters to dynamically reformat incoming URL requests from an idealized form to a native server pathname.
This is an extremely valuable capability to create URLs that make more sense to a human, as well as a chance to optimize URLs for search engines. The module is very flexible, which is why it has been called "the Swiss Army Knife of URL manipulation", but can also be a bit tricky to implement, which is why it has also been called "Voodoo".
Here's what they say about it in the manual...
quote:
The Apache module mod_rewrite is a killer one, i.e. it is a really sophisticated module which provides a powerful way to do URL manipulations. With it you can do nearly all types of URL manipulations you ever dreamed about. The price you have to pay is to accept complexity, because mod_rewrite's major drawback is that it is not easy to understand and use for the beginner. And even Apache experts sometimes discover new aspects where mod_rewrite can help.
In other words: With mod_rewrite you either shoot yourself in the foot the first time and never use it again or love it for the rest of your life because of its power. This paper tries to give you a few initial success events to avoid the first case by presenting already invented solutions to you.
We use mod rewrite here at SEO 1 so that our threads can have a URL that looks like this...
http://www.seo1.net/thread1498.html
instead of...
http://www/seo1.net/viewtopic.php?t=1498
And that is just a very simple, but useful, example of the kinds of optimizations that can be performed with mod rewrite.
We intend on providing you with more practical information and examples, but for now...
More reading
http://httpd.apache.org/docs/mod/mod_rewrite.html
http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
Last edited by Andrew on Wed Mar 16, 2005 4:50 am; edited 1 time in total |
Fri Mar 04, 2005 7:25 pm |
|
|
xboxundone
Senior Member

Joined: 04 Mar 2005
Good Posts: 243
|
WOW so who will interpert this for me ??? 
|
Sat Mar 19, 2005 8:53 pm |
|
|
hoptoo
Senior Member

Joined: 16 Mar 2005
Good Posts: 203
Location: Hoptoo's Doppelganger |
hey UNDONE, what is the source of your screen name? I have a pretty sweet xbox related domain name or two im about to be done with.
Restaurant Reviews
Buy Team Jerseys
Learn SEO today |
Thu Mar 24, 2005 7:16 pm |
|
|
andy f
Contributing Member
Joined: 29 Jul 2005
Good Posts: 31
Location: North west coast England UK |
Mod rewrite is the way forward, basicly you want everything as easlily rememberable as possible and also robot friendly without question marks and lots of different numbers and letters to remember, mod rewrite makes it possible for php pages ect to be re-written from there orional page name index.php?143&ect456 into the post of the title , this also helps with search engines because the page title is relevant instead of been 143 its about seo
Sorry i am a bit new and i only read the title of this post
my aim journal my blah |
Wed Oct 26, 2005 12:39 am |
|
|
DNLodge
Preferred Member
Joined: 11 Dec 2005
Good Posts: 102
|
Thanks for this!
Webmaster Forums |
Mon Dec 19, 2005 1:42 am |
|
|
leye
New Member

Joined: 06 Jan 2006
Good Posts: 9
|
hello All
I am trying to get to grips with the mod rewrite. I know this type of thing has been covered before but I am having trouble getting the most basic of rewrites to work.
I have created two pages (1.htm and 2.htm) with unique content.
I have the following in my htaccess
rewriteEngine on
rewriteBase /mydirectory/
rewriteRule ^1\.htm 2.htm [R]
Now when I call 1.htm it appends the whole physical path to the page and so results in an error
Hi, I'm new to SEO 1. |
Fri Feb 24, 2006 5:22 pm |
|
|
justicewhite
Senior Member
Joined: 12 Aug 2005
Good Posts: 800
|
quote: Originally posted by leye hello All
I am trying to get to grips with the mod rewrite. I know this type of thing has been covered before but I am having trouble getting the most basic of rewrites to work.
I have created two pages (1.htm and 2.htm) with unique content.
I have the following in my htaccess
rewriteEngine on
rewriteBase /mydirectory/
rewriteRule ^1\.htm 2.htm [R]
Now when I call 1.htm it appends the whole physical path to the page and so results in an error
Check out the following tool:
http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml
Estate Agents Reading || Letting Agents Reading |
Mon Feb 27, 2006 11:43 am |
|
|
Jenniferlinn
Preferred Member
Joined: 01 Jan 2009
Good Posts: 105
Location: UK |
A rewrite engine is software that modifies a web URL's appearance (URL rewriting). Users of web applications prefer short, neat URLs to raw query string parameters. A concise URL is easy to remember, and less time-consuming to type in. If the URL can be made to relate clearly to the content of the page, then errors are less likely to happen.
Search engine friendly URLs (for short SEF URLs) are implemented with Rewrite engines.
The Apache module mod_rewrite is a killer one, i.e. it is a really sophisticated module which provides a powerful way to do URL manipulations. With it you can do nearly all types of URL manipulations you ever dreamed about.
SEO |
Mon Feb 02, 2009 12:51 pm |
|
|
|
|
|
|
|
|
|