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?
DirectoryIndex home.php
RewriteEngine on
RewriteBase /BETA/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /^([^/]+)$ index.php?a=$1 [L]
Sounds like you need to load the rewrite module.
In your server config:
LoadModule rewrite_module modules/mod_rewrite.so
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.
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…