SEO 1 Links

  SEO Blog
  SEO Forum

  Active Topics
  Register
  Memberlist
  FAQ
  Search




SEO Forums

  SEO Forum
  SEM Forum

  Directories
  Link Networks
  Mod Rewrite
  Content
  Revenue Networks

  Marketing
  Social Bookmarking
  Webmastering

  Google
  Yahoo
  MSN

  Search
  Engines

  Link Exchange



Welcome

Time Now:
Sat Nov 18, 2017 4:00 pm

All times are GMT

Log in

Username:

Password:

 





 





Who is Online



Most users ever online in a day was 2917 on Thu Oct 25, 2007 4:43 pm
 



Member Websites

Free Sitewide Links
For Top Members





SEO 1 Forums > Mod Rewrite >

What the Hell is a Mod Rewrite?



Author Thread
Andrew
Senior Member


Joined: 21 Feb 2005
Good Posts: 997
Location: apache/domlogs
What the Hell is a Mod Rewrite?  Reply with quote  

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
Post Fri Mar 04, 2005 7:25 pm
 View user's profile Send private message Visit poster's website
clasione
Full Member


Joined: 08 Mar 2005
Good Posts: 53
Location: Long Island
 Reply with quote  

That is a beautiful thing....

This thread just reminded me to look for a string here...

Good work!


https://www.searchen.com
Post Tue Mar 08, 2005 7:31 pm
 View user's profile Send private message Send e-mail Visit poster's website
xboxundone
Senior Member


Joined: 04 Mar 2005
Good Posts: 243

 Reply with quote  

WOW so who will interpert this for me ??? ;)


Post Sat Mar 19, 2005 8:53 pm
 View user's profile Send private message Visit poster's website
hoptoo
Senior Member


Joined: 16 Mar 2005
Good Posts: 203
Location: Hoptoo's Doppelganger
 Reply with quote  

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
Post Thu Mar 24, 2005 7:16 pm
 View user's profile Send private message Visit poster's website
andy f
Contributing Member


Joined: 29 Jul 2005
Good Posts: 31
Location: North west coast England UK
 Reply with quote  

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
Post Wed Oct 26, 2005 12:39 am
 View user's profile Send private message Visit poster's website
DNLodge
Preferred Member


Joined: 11 Dec 2005
Good Posts: 102

 Reply with quote  

Thanks for this!


Webmaster Forums
Post Mon Dec 19, 2005 1:42 am
 View user's profile Send private message Visit poster's website AIM Address MSN Messenger
leye
New Member


Joined: 06 Jan 2006
Good Posts: 9

 Reply with quote  

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.
Post Fri Feb 24, 2006 5:22 pm
 View user's profile Send private message Visit poster's website
justicewhite
Senior Member


Joined: 12 Aug 2005
Good Posts: 811

 Reply with quote  

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 Maidenhead | | Letting Agents Maidenhead
Post Mon Feb 27, 2006 11:43 am
 View user's profile Send private message Visit poster's website
CaribD
New Member


Joined: 08 Feb 2007
Good Posts: 16

 Reply with quote  

quote:
Originally posted by justicewhite

Check out the following tool:
http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml


Hey Thanks justicewhite,

Exactly what I was looking for, certainlly solved the need for me to learn the hard way, via trial & error.

Thanks


Hi, I'm new to SEO 1.
Post Mon Jun 11, 2007 11:45 pm
 View user's profile Send private message Visit poster's website
Jenniferlinn
Preferred Member


Joined: 01 Jan 2009
Good Posts: 107
Location: UK
 Reply with quote  

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
Post Mon Feb 02, 2009 12:51 pm
 View user's profile Send private message Visit poster's website
crishseo
Preferred Member


Joined: 16 Dec 2009
Good Posts: 163
Location: India
 Reply with quote  

i was suffering from the problem of website URL. My website open without www and not it is open in a proper way with www. i have solved this problem using mode rewrite 301.
Post Sun May 09, 2010 4:03 pm
 View user's profile Send private message
drupaldevelopment1



Joined: 03 Sep 2010
Good Posts: 0

 Reply with quote  

Thanks for your great inforamtions


Hi, I'm new to SEO 1.
Post Fri Sep 03, 2010 7:44 am
 View user's profile Send private message
sonu sing
Senior Member


Joined: 19 Jun 2010
Good Posts: 309

 Reply with quote  

Simply, mod_rewrite is used for rewriting a URL at the server level, giving the user output for that final page. So, for example, a user may ask for http://www.somesite.com/widgets/blue/, but will really be given http://www.somesite.com/widgets.php?colour=blue by the server. Of course, the user will be none the wiser to this little bit of chicanery.


Tanisha Systems Review |
Post Sat Oct 09, 2010 6:39 am
 View user's profile Send private message Visit poster's website
rivaldowhd
Preferred Member


Joined: 10 Aug 2010
Good Posts: 125

 Reply with quote  

How to implement such a rewrite pattern?
http://www.seo1.net/what-the-hell-is-a-mod-rewrite

It would be more friendly to human as well as search engines


Pastor Appreciation Gifts | Engraved Crystal Awards
Post Fri Nov 19, 2010 2:24 am
 View user's profile Send private message Visit poster's website
saurabh55
New Member


Joined: 20 Apr 2011
Good Posts: 9
Location: delhi
 Reply with quote  

very -2 thanks to sharing the information of mod rewrite.basically it is very useful if retains information is shared by other web sever.
Post Tue May 10, 2011 6:33 am
 View user's profile Send private message Visit poster's website
Goto page
1, 2  Next

Reply to topic
Jump to:  
Display posts from previous:      






SEO 1 © 2005-2015 - SEO 1 the SEO Forum