The htaccess tag has no wiki summary.
0
votes
0answers
5 views
Where do I set AddType video/mp4 .mp4 on an Apache server running Django through WSGI?
I'm currently serving mp4 video files from my Django site so that they can be played through html5 in the browser. The video doesn't work in Win 7, IE9. I have read around and people suggested I ...
0
votes
0answers
62 views
allow public access to subfolder of protected folder on apache
I have password-protected the root folder of my website while i do maintenance, but I want to display a custom 401 error page to let people know the site is under construction. Unfortunately, my web ...
0
votes
0answers
37 views
Trouble handling zip files?
I'm trying to send a zip file to someone, but I'm having a lot more trouble with it than I should. I tried uploading it to 4shared, mediafire, and megaupload, but all uploads failed multiple times. ...
1
vote
0answers
33 views
.htaccess in subdir gets ignored by Wordpress' own .htaccess in /
I have a Wordpress installation on the root of an apache (I.E. on /) and WP wrote this custom .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
...
0
votes
2answers
37 views
.htaccess file ignored on Ubuntu server
I'm having a problem with an .htaccess file on a newly installed Ubuntu server running Apache2.
The .htaccess file in the directory where the WordPress files are located isn't being take into account ...
0
votes
1answer
18 views
Allow Verified Users Only To View Directories
I want to upload some websites I have worked on to an Apache server. What I would like to do though is to use an .htaccess file or something similar to redirect the user to a login page if they go ...
1
vote
1answer
29 views
.htaccess not working
I am trying to get .htaccess to work under Apache, but the server doesn't seem to honor it.
In httpd.conf I have:
AllowOverride All
I have restarted the server with service httpd restart. I have ...
1
vote
0answers
520 views
403 Forbidden Acces via .htaccess clean url but can be accessed directly
Could someone help me decode my apache2 error_log?
[Sat Nov 19 17:39:59 2011] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/Users
[Sat Nov 19 17:39:59 2011] ...
0
votes
1answer
62 views
Why is redirecting inside the nginx config file inefficient?
Can someone explain why they say this in the nginx documentation? Why is it "cumbersome and ineffective"?
A redirect to a main site
People who during their shared hosting life used to ...
2
votes
1answer
87 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
37 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 ...
0
votes
1answer
73 views
Understanding this generated .htaccess file and solving my problem
I've downloaded and installed some software on a web server which seems to have generated an .htaccess file in my root folder. I didn't care at first, until I realized I wasn't able to navigate to ...
1
vote
1answer
80 views
configuring cgi-bin using .htaccess
I'm trying to configure a directory as cgi-bin using .htaccess, but when I try to access the executables, the files are downloaded. I'm using apache2.2. What is the problem?
My .htaccess looks like:
...
1
vote
2answers
116 views
How secure is .htaccess?
I've got a personal website I wish to lock down to everyone else except me. I've been using an .htaccess file for a bit and quite like it (they don't even see a webpage, just the login box), but will ...
0
votes
0answers
49 views
Failed Referrer Report after using 301 Redirect in .htaccess
I'm using this 301 Redirect in my .htaccess file which redirects correctly from files in the old folder to the new one:
Redirect 301 /tricks/ /kites/tricks/
reeddesign.co.uk/tricks/540.html
...
0
votes
1answer
291 views
problems when computers outside the network connect to my localhost
I'm trying to let others access the website that I have made. A point of sale system to be exact. Is it really normal for people outside the network to see broken links?
I'm using apache as a server. ...
0
votes
0answers
73 views
How Does One Make Apache htaccess 301 Redirects Absolute?
I am trying to redirect my university webpage with an .htaccess file:
Redirect 301 /~foo/ http://mynewdomain.com/
However, instead of taking me to http://mynewdomain.com , it appends the ~foo so ...
3
votes
1answer
1k views
pcfg_openfile: unable to check htaccess file, ensure it is readable
After moving a website folder on my local development machine to another drive, then moving it back, I got a 403 error. Most of this problem had probably to do with rights that got messed up. After ...
0
votes
1answer
237 views
Wildcards using .htaccess to redirect to index page
How do I modify the .httaccess to redirect all wild cards to the main domain.
0
votes
1answer
680 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/(.+)$ ...
0
votes
1answer
59 views
How to redirect http://mysite/css/ to http://server1.mysite.com/css?
How can i redirect all requests passed to
http://mysite.com/css
to
http://otherserver.otherserver.com/css ?
User typing
http://mysite.com/css/somefile.css
and go redirect to
...
0
votes
1answer
103 views
.htaccess to restrict access to only select files
I have a directory in my webserver for which I would like to serve up only pdf files. I found I can restrict access using the .htaccess, and using something like
<FilesMatch "\.(text,doc)">
...
0
votes
3answers
176 views
Is it possible to rsync your web site to another backup server and use the same .htaccess files?
I am trying to use rsync to replicate all the files from one web server to another server that could act as a backup if the first one went down. The problem I am having is that the .htaccess file ...
1
vote
2answers
396 views
AllowOverride for userdir
I need to allow all userdir (host.com/~user) to override options in their .htaccess, such as php_value. Where do I configure Apache to AllowOverride ?
0
votes
2answers
1k views
Aptana show .htaccess files
Using the new Aptana Studio 2.0 and loving it. Trying to open and edit .htaccess files in Aptana Studio, but it's not showing up in the PHP Explorer pane, which normally shows all files, but not ...
3
votes
3answers
4k views
How to show .htaccess files in specific folder in the Finder
I need to see my .htaccess files for the websites i develop locally on my Mac OS X. I put all my sites in the Sites folder. Since it starts with a dot, Mac OS X treats them as system - therefore ...
8
votes
6answers
13k views
How do I rename a file to .htaccess in Windows 7?
I'm using XAMPP to test a PHP script. Now, in the root of the folder I want to place a .htaccess file according to the requirements of the script.
But Windows won't let me rename it to .htaccess. Is ...