0
votes
0answers
23 views

Why doesn't Apache Server allow Order command in .htaccess?

I'm running Apache v2.4 on Windows 7 and when I try to insert Order or Options into my .htaccess file, the server gets errors like these: Invalid command 'order', perhaps misspelled or defined by ...
0
votes
0answers
20 views

One domain, two servers

I have an architecture where some sub folders of a domain needs to redirect to another with their POST data, like so: domain.com => Server #1 domain.com/someSubDir => #server2 ...
2
votes
1answer
1k views

How to hide the PHP file extension using WampServer and .htacess file?

I just installed WampServer on Windows7 and uncommented mod_rewrite and set AllowOverride to All in the httpd.config file. I created an .htacess file and placed it in the root folder with the ...
1
vote
2answers
95 views

Is .htaccess necessary for Apache httpd?

I'm now setting up a weblog site and encountered this problem. My server is Apache httpd 2.2. In case my weblog pollutes the root directory(htdocs), I created a subdirectory blog. The current state ...
2
votes
1answer
11k views

.htaccess 301 redirect with regular expressions

If I have: redirect 301 /users/foo http://www.example.com/profiles/foo redirect 301 /users/bar http://www.example.com/profiles/bar Can I do something like? redirect 301 ^\/users/(.+)$ ...