Questions tagged [htaccess]

The hypertext access web server configuration file used for overriding configuration on a per-directory basis.

67 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

utilize htaccess to rewrite all indexes

upon a 404 I want to set my htaccess file to utilize another file from another location in lieu of the missing file. The url must remain the same as if the file was in the directory & more ...
user1483887's user avatar
0 votes
1 answer
767 views

Redirecting visitor with htaccess to another URL based on IP range

I've pored through other questions to find a solution, and the closest I've come is Zerobinary99's question here: How do regular expressions work in htaccess to redirect an IP range However, I'm not ...
Dave's user avatar
  • 1
0 votes
1 answer
230 views

My .htaccess is not working properly

This is very bizarre. I have never had this issue until now. Basically I have a little code in .htaccess that removes the .php extension from the web pages. For some reason, it has stopped ...
john smith's user avatar
0 votes
1 answer
2k views

Allow PHP to execute in a specific subdirectory, when parent directory is denied?

I operate a small shared server and would like to give some of my users the ability to execute PHP code from the browser (but not all of them) but have been unable to do so. In the top level directory ...
Dangus's user avatar
  • 1
0 votes
1 answer
42 views

.htaccess mask on current website

I've got a website on a FTP, mysite, on which I have : /index.php which is my real site /preprod/index.php, which is my pre-production website I want to make the preprod website visible to any ...
Anonymous12223's user avatar
0 votes
1 answer
2k views

XAMPP Apache error AH01599: Cannot get media type from 'x-httpd-php53'

I'm trying to setup Xampp on a Mac (OSX 10.10.2), its setup and normal PHP runs, however when I try and run a Wordpress site the PHP code doesn't execute, it just prints out in the browser and I keep ...
Joe Taylor's user avatar
0 votes
1 answer
58 views

In SVN + Apache, how to password protect old revisions?

We have a svn repository, facaded by apache, and protected by (complex) authorizations. At revision 1000, we are migrating lots of folders in that svn to a new structure. We thus adapt the rights to ...
jehon's user avatar
  • 239
0 votes
0 answers
130 views

.htaccess in root directory

I have an apache webserver (shared hosting) where I have access to /home/user If I place a .htaccess in /home/user it gets applied to all subdirectories. The domain belonging to this has several ...
masgo's user avatar
  • 2,244
0 votes
1 answer
207 views

Show The Same Content For Different URL Strings

I am trying to set up a system where for one of my directories, "example.com/folder/", if a user types in ".../folder/?(RANDOM STRING)", it will display the content for ".../folder/" but keep ".../...
acamso's user avatar
  • 153
0 votes
0 answers
69 views

What is wrong with my .htaccess 404 error

I have created .htaccess under my public_html folder and it is like this: ErrorDocument 404 /404.php if I type mydomain.com/random it shows the 404 error, however if I add anything else, like ...
Shnigi's user avatar
  • 113
0 votes
1 answer
3k views

How to rewrite url in address bar without changing the actual URL?

I am facing SEO problem with my website cause my URLs are with index.php For an example when I try to upload a file the URL is like this: http://niresh12495.com/index.php?app=downloads And when I try ...
Niresh's user avatar
  • 233
0 votes
1 answer
142 views

mod_deflate - possible to compress 1k or higher only? cache?

Is there a way to tell mod_deflate in .htaccess to only compress files if they are at least 1kb? Also, can it cache compression results? Once it compresses a file, I want it to use that again instead ...
snoopy76's user avatar
  • 103
0 votes
1 answer
1k views

.htaccess and .htpasswd throwing 500 internal server error

I've created a .htaccess and a .htpasswd file, both using my hosting's tool, uploaded them, and I get an error when I try to view the directory. Why? my .htaccess file: AuthName "Restricted Area" ...
David ZIP's user avatar
  • 113
0 votes
1 answer
29 views

How can I create a filter defining which invisible files to un-hide?

I want to expose .htaccess is the OSX GUI UI, but not other files that should be "invisible." Any ideas?
nipponese's user avatar
  • 1,114
0 votes
1 answer
351 views

.htaccess speed vs. symlink or DNS setting I don't know about?

This is probably a very simple question, but there's so much content out there that it was hard to google the correct problem I have. I have 3 domains that I all want to go the very same place, ...
ere's user avatar
  • 254
0 votes
0 answers
159 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. I'...
mowwwalker's user avatar
  • 1,604
-1 votes
1 answer
123 views

Restrict page access only to servers

I am running a cron job to excecute a file that should be accessed only by the server not others.my website is hosted by webhosting company and I have access to cpanel.. What should be done? I ...
B L Praveen's user avatar

1
2