Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default htaccess - Tutorial

    Bored so yah, Ive written this tutorial on some things on .htaccess

    Banning IPs

    Now, I wouldn't recommend banning IPs due to you may block out more than one person (maybe thousands)

    All you need to do is replace "00.00.00" with the persons IP. If you want to not allow anyone to view it, just replace the IP with all

    Code:
    deny from 00.00.00
    SEO Friendly URLs

    I used to use this on my vbulletin at one point, I use it quite oftenly in my coding. It can be used with $_GET to make the URL search engine friendly (plus it looks better)

    Code:
    RewriteEngine on
    RewriteRule ^([^/.]+)$ myscript.php?get=$1
    So if I now typed in http://www.eg.com/anything it would load http://www.eg.com/myscript?get=anything

    Error pages

    Error pages are very simple to make. All you need to type is "ErrorDocument (error code) /(your page)"

    eg. File can not be found

    Code:
    ErrorDocument 404 /404.html
    For all your error codes check out w3.org
    http://www.w3.org/Protocols/HTTP/HTRESP.html

    Redirect
    I personally prefer to redirect in the page using html but anyway here we go...

    Code:
    Redirect /oldfile.html /newfile.html

    I am bored of writing this now, anyway I hope this helped some people.

  2. #2
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    For anyone that can't see, the "SEO Friendly URLs" is MOD_REWRITE.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •