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 modrewrite help

DelzhandDelzhand Registered User, Transition Team regular
edited August 2011 in Help / Advice Forum
I'm trying to modify a .htaccess file so that if a user goes to admin/login, they see the page that's normally available at /user, but with the admin/login url. Is that possible? People who go to /user should see the normal page without a changed url.

Echo on

Posts

  • EndEnd Registered User regular
    edited August 2011
    Whether or not you can do this depends on what you believe "a user" to be (compared to someone who would see the "real" admin/login page)

    (I'm curious about the "why" of this though. I'm not sure this is a problem that mod_rewrite should be handling)

    End on
    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpg
  • mrcheesypantsmrcheesypants Registered User regular
    Any reason why you aren't doing this at the application level? Perhaps I don't quite understand the question, but usually for user permissions you need to use cookies which shouldn't/can't(as far as I know) be redirected via htaccess.

    Diamond Code: 2706 8089 2710
    Oh god. When I was younger, me and my friends wanted to burn the Harry Potter books.

    Then I moved to Georgia.
  • EndEnd Registered User regular
    edited August 2011
    I think you can redirect based on the presence of a cookie, but it does sound wrong and woefully incomplete (you're still going to want to do deeper inspection of the cookie on the application side), doesn't it.

    On the other hand, I don't know that what the OP is asking for isn't for something like an IP address based check.

    End on
    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpg
Sign In or Register to comment.