SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htaccess in BETA folder Issues

    I'm working on a redesign of a particular site. I'm eeping the live version up and running, and doing development for the client in a BETA folder. Once approved, I'll just kick all the new files out to the main directory.

    Having problems with htaccess ( ... and it seems I ALWAYS have problems with this ...)

    If I put JUST the DirectoryIndex home.cfm in htaccess, it works, so I know the file is functioning on the server.
    Adding anything else though, even JUST "RewriteEngine on" with nothing else in the file, and I get an internal sever error.

    What do I have wrong?

    Code:
    DirectoryIndex home.php
    
    RewriteEngine on
    RewriteBase /BETA/
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule /^([^/]+)$ index.php?a=$1 [L]

  2. #2
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,314
    Mentioned
    19 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by LesMizzell View Post
    ...even JUST "RewriteEngine on" with nothing else in the file, and I get an internal sever error.
    Sounds like you need to load the rewrite module.

    In your server config:

    Code:
    LoadModule rewrite_module modules/mod_rewrite.so
    "First make it work. Then make it better."

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a public server, so I don't have that access. Waiting on an answer from support.
    I use htaccess on almost ALL my sites on this host, and the config I use above is my default unless I need to do something weird, so something seems up.
    Will report back once I find out more.

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would appear that hosting how required you to log into their control panel, and MANUALLY click a "sync htaccess" button before whatever you've coded is actually active. PITA? Yes, PITA!

    Why don't they tell you these things when they change them BEFORE you pull out all your hair trying to figure out why code that should be working isn't anymore? Sheesh...


Bookmarks

Posting Permissions

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