The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

.htaccess rerouting?

SniperGuySniperGuy SniperGuyGamingRegistered User regular
edited March 2007 in Help / Advice Forum
So, I have the56k.com. I want it so that when you go there, the actual root the website displays is the56k.com/blog. My provider has an option to do this for 22 dollars, but I know I can do it with .htaccess, I just don't know how. I tried using
Redirect / http://the56k.com/blog/
in the .htaccess, but that rerouted me to http://www.the56k.com/blog/blog/blog/blog/blog/blog/blog/blog/blog for some weird reason.

Any ideas?

SniperGuy on

Posts

  • JaninJanin Registered User regular
    edited March 2007
    Use RedirectMatch instead. What's happening is that </> -> </blog>, </>blog -> </blog>/blog, etc. You'll need to use a regular expression to match only when the full path is "/". It's been a while since I've messed with redirects, but try:
    RedirectMatch ^/$ http://the56k.com/blog/
    

    Docs here

    Janin on
    [SIGPIC][/SIGPIC]
  • SniperGuySniperGuy SniperGuyGaming Registered User regular
    edited March 2007
    That worked like a charm. Many thanks man.

    SniperGuy on
Sign In or Register to comment.