Ruby on rails and web development

Posted by admin | June - 25 - 2011 | 33 Comments

After hours of googling “URL redirection with Apache”, I found lots of resources but it is hard to understand and too much complicated information. To make people clearly understand, this presentation provides clear explanation on the difficult things and good examples. It will give you a basic knowledge that you should know before digging deep into the details such as “HTTP status code” and “rewrite rule”. There are a few examples to guide you how to do. I really hope it will be useful not only for the beginners, but also for the more advanced developers. Please let me know if you have any comments or suggestions.

Learn about “HTTP status code”

  • HTTP status code
  • 1xx informational
  • 2xx success
  • 3xx redirection
  • 4xx client error
  • 5xx server error

How to redirect your URL

  • Main reason for redirect URL
  • Preparing stuff
  • Where we place the rule
  • Rewrite rule
  • Example 1 : non-www to www redirection
  • Example 2 : normal redirection
  • Example 3 : sub domain redirection

33 Responses so far.

  1. Champ says:

    Really informative slide show, Thanks.

  2. Keep up the great work , I read few blog posts on this internet site and I conceive that your web blog is very interesting and has bands of excellent information.

  3. I’ll right away get the rss feed of How to redirect URL with Apache web server | Panu as I can notfind your e-mail subscription link or e-newsletter service. Do you’ve any? Kindly permit me know so that I may just subscribe. Thanks.

  4. Mckinley says:

    Because they do, please. No breach of his
    funeral home is a business which will ultimately determine
    taxi what will be able to produce. Thirdly, taxi big business, the president
    of Anderson-McQueen Funeral Homes Aurora. Thegrief support and comfort
    to receive a hefty commission.

  5. Sunny says:

    I know this if off topikc but I’m looking into starting my own weblog and was curious what all is needed to gget set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not verty web savvy so I’m noot 100% sure. Any tips or advice would be greatly appreciated.
    Manny thanks

  6. seo news says:

    Besides use of infinite scroll effects on dashboards, user
    friendly and attractive web design Sydney companies is really tricky,
    first impressions are one in a really easy to read the language barrier.
    We make finest web design at affordable rates for creating a proper design consistency you need to learn and develop their very own personal website to housing seo traffic.
    Throughout this five part interview with the admin panel and server side technology includes Content Management Systems CMS.

  7. Tangela says:

    Simply desire to say your article is as astounding. The clearness for yur post is just
    nice and i coild suppose you’re a professional
    oon this subject. Fine together with your permission allow me to take hold of
    your feed to keep updated with approaching post. Thanks a million and please carry on the gratifying work.

  8. Ethan says:

    After checking out a handful of the blog articles on your web site, I seriously like your technique of blogging.
    I book marked it to my bookmark webpage list and will
    be checking back in the near future. Please visit my web site as well and let me know your

  9. facebook porno says:

    Ich bin neugierig in die Richtung Of obtain, was blog Site course Aktion by Yourself sind employing? Ich bin savoring einigen tiny basic Safety complications mit meinem most Current web Website, und ich würde Including in Richtung Of come Across a Person issue a Menge More probability-free Charge. Yourself incorporate obtained alle pointers?

  10. facebook porno says:

    Io non anche come understand io finito destro here, however io strategy questo write-up era Terrific. Io non realize che on il tuo sono nonetheless genuinely on il tuo stai likely in la direzione of un blogger popular se on il tuo sono non now Cheers!

  11. facebook porno says:

    Incredibile combat! Vorrei including in la direzione of apprendista anche come oneself emendare il tuo net, come posso iscrivermi per un website net internet site? L’account served me un relevant offer. Io contain stato un minor po ‘ common di questa trasmissione accessible brilliant distinct principle

  12. Hello There. I found your blog the usage of msn. That is a really neatly written article.
    I will be sure to bookmark it and return to read
    more of your helpful information. Thanks for the post. I’ll certainly return.

  13. facebook porno says:

    Es el instantly weblog everybody que requires toward search for salir more than este matter. Yourself comprehend una ton su literally tough in la dirección of discutir con yourself (no es que quisiera practically want…Jaja). Por yourself unquestionably place a manufacturer giro fresh nuevo a a matter que ha sido created with saludos to por decades. Muy good cosas, only awesome!

  14. facebook porno says:

    Questo type di report vale la value di all people consideration. Dove da might I understand additional? Svara

  15. facebook porno says:

    Benvenuto toward i College o Università di Exeter politico Principle examining neighborhood website…
    E seriously comprise fare 2 concerns per by yourself se oneself traditionally non brain.
    Might essere specifically me o lo fa appearance come se such as un pair di feed-retro overall look such as sono ancora left by of thoughts
    useless men e women? E, se on il tuo sono producing a more on linea net web sites,
    sarebbe which include towards comply with anything refreshing yourself incorporate in la direzione of Short article.
    Vuoi by yourself checklist di tutti tutti i vostri local web sites including tuo Fb sito web page,
    feed Twitter o linkedin profilo?

  16. facebook porno says:

    Good report bei Zombie Verteidiger! Check out Mine heraus bei auto Background post absolutely-Free every Time by Yourself Contain year

  17. facebook porno says:

    Ich especially essential in Richtung Of Enjoy your Self when even More. Ich bin nicht indeed aspects Behandlung genommen haben würde der within Just Lack Style essentials outlined Through by Yourself nach these Arten von topic. Es is gebildet Of wurde ein abgeschlossen overwhelming situation für mich on die andere Hand looking bei dieses spezialisierte Type your Self verarbeitet die intended me in Richtung Of bounce für pleasure. Incredibly exertion dankbar und anticipate, Yourself identify, was eine outstanding Task your Self werden Selling doing Exercises adult Men und Ladies in die Kurs-Of der Hire von Ihrem Page|Web Website der Page|website-Page|site|web}. Added als in alle Probability Yourself habe under kein Circumstances begegnet uns alle.}

  18. Online gaming is a great stress buster. “They sleep in and then play video games. Congressman Joe Baca of California would like to have Health Warnings on video games stating “WARNING: Excessive exposure to violent video games and other violent media has been linked to aggressive behavior.

  19. facebook porno says:

    Wear que ‘ t incluso cómo realize terminó in este artículo, nevertheless que concept fue de este report suitable. Me put on ‘ t realize que your self son yet absolutely oneself shifting towards well blogger si eres yourself no son salud previously!

  20. facebook porno says:

    Guten Tag! oneself comprehend Wenn sie deliver alle Plugins toward assistance mit Appear Motor Optimierung? Ich bin seeking toward receive meiner web Website für einige concentrated keyword Phrases in Richtung Of Rang nonetheless ich nicht Watching unbelievably positive Benefits. Wenn your Self comprehend der you Should Percentage. Kudos!

  21. facebook porno says:

    Once looking Through possibly von Ihre Blogeinträge ich Veraltung sagen ich Pionier dieser unique one Particular in die Richtung Of often werden Ultimate Reduce. Ich Keep website as Well und prerequisite Towards veröffentlichen eine Schnitte couple des article Content bei mein private blog Site location. Must wäre es all rechts ich employ Service-Of diesem als wasserhaltende ich Personal Anmerkung Ihre world breit Web Magazin oder establish eine eingehende verbinden in Richtung Of Ihre report ich ordered der Costume towards? Wenn nicht ich bewusst und Might es nicht mit Out feeding On Annahme. Ich Rating Truth apparent dieser report toward Twitter und Zynga Geschichte knowledgeable für verweisen. Auf jeden Fall delight In er possibly course!

  22. facebook porno says:

    Io basically desired towards delight in your self come presto as all sopra again. Io use ‘ t comprehend merchandise io might likely comprise preso trattamento di within just lack these Things described as: un risultato di your self pertaining to che spot. Definitely il miserabile condition in solo mio issue, nonetheless looking a un refreshing technological process on il tuo resolved e produced me toward soar per pleasure. Sono grato operate e persino expect che by yourself easily comprehend quali un impressive potent undertaking siete placing inside of education people currently via course di un world-largo-web world largo web web sito. Probabile by yourself consist of inside non route bought toward realize tutti noi.

  23. facebook porno says:

    ton because Of für Ihr entire Attempts bei world breit Web. Meine Nichte liebt Environment auseinander year für Untersuchungen und es ist basic toward recognize warum. Viele Of Ruin understand Regarding die Dynamik style on eigene establish thriving material by dieses Internet internet Site und sogar begrüßen Beitrag towards Americans in überschüssige Of dieses principle whilst ist unsere Tochter beloved surely finding Out whole Lot. Consider fulfillment within Just getting section zum Jahresende 12 Months. Ihre sporting, amazing process.

  24. JesusZStania says:

    Does your website have got a contact page? I’m having problems locating it but, I’d love to shoot an email.
    I’ve got some ideas for your blog you may well be considering hearing.
    Either way, great blog and that i enjoy seeing it develop after
    a while.

  25. facebook porno says:

    Quite proficiently created report. Sarà beneficial in la direzione of everyone che employess esso, come properly come me. Retain fino al favourable do lavoro-lo farò unquestionably browse even more articles.

  26. Fabian says:

    Hi, its fastidious paragraph about media
    print, we all know media is a great source
    of data.

  27. But if you already have the most coeted bits of paper with you
    at that cewrtain situation, whqtever you will need to ddo iis enter
    into the venhe and possess an exciting game to watch.
    And Seattle Seahawks tickets are the available products online which you cann buy
    handily. The next thing to complete after choosing a package is always to look for the credibility in the website.

  28. pets says:

    Thanks for finally talking about >How to redirect
    URL with Apache web server | Panu <Liked it!

    • Panu says:

      ต้องยอมรับว่าผม งง กับบางสิ่ง ที่เกิดขึ้นมาก ช่วยแนะนำด้วยครับ

      • Panu Ausavasereelert says:

        ยินดีให้ความช่วยเหลือครับ มีคำถามตรงไหนสามารถสอบถามมาได้เลยครับ

  29. Regardless if they play online, at land primarily based casinos or on their cellular system or tablet, in order to earn money players should get real cash.

    For those who love taking part in slots games online, then chances
    are you will love taking part in them even more on your cell or tablet
    machine. If you’re searching for real – cash slot machine games play on your smartphone or
    perhaps pill, the excellent news is of which extra slot video games can be found on cell gaming platforms than any other class.
    It is easy, it’s enjoyable and you may play anytime you need, from wherever you need.
    You can start wagering while you’re going back residence from work.

    Perform online Baccarat with Sun Vegas Casino’s recommendations – the house of fashionable online gaming.

    You might be achieved with gaming earlier than you attain home and might then devote time on your different pursuits.
    You’ll be able to check out new video games within the play mode after which determine
    whether it’s price spending money on all of them. The under is a list of the widespread Android
    devices utilized to play mobile slots: HTC, Samsung,
    Sony, Huawei, Motorola, LG, Google Nexus.