0
votes
0answers
15 views

The requested URL /fr/index.php was not found on this server Htaccess issus

I want to delete query string (fr) from my URI with htaccess rules, so I added this rule in the htacces file : RewriteRule ^((?!fr/).*)$ /fr/$1 [L,NC] But apache gives me this error: The requested ...
0
votes
0answers
26 views

how to solve apache settings for double slash on sub-directory of a wordpress

i have multiple websites on a single domain, there's one website on the main domain and two of them on sub-directories and they're using wordpress. as this is not a problem with wordpress or its ...
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
56 views

Apache mod rewrite testing tool (no online tools)

I've tested some great RegEx standalone tools and found a couple of mod rewrite online tools, but is there some standalone tools for testing apache mod rewrite definitions? Ideally, I want something ...
1
vote
2answers
61 views

htaccess redirect to port

I need to redirect subdomain.example.com -> subdomain.example.com:32400/web My current htaccess is: Options -MultiViews +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ...
0
votes
0answers
7 views

Is there a way to check whether Apache AllowOverrice Options is allowed in .htaccess?

I have following .htaccess file: Options -Indexes Options -MultiViews This file is deployed into many servers with different configurations. Some of them has AllowOverride Options disabled and ...
0
votes
1answer
60 views

htaccess password dialog shown on home route

I created a droplet that has Wordpress installed on Digital Ocean. When I visit the homepage "/", I am required to input the .htaccess credentials in a dialog that shows up. I noticed this statement ...
0
votes
0answers
45 views

Route to the proper file with .htaccess

I'm having issues with my Codeigniter .htaccess file... basically it goes like this. Regular .htaccess file (that works on my localhost): RewriteEngine On RewriteCond $1 ...
1
vote
1answer
72 views

webserver serve file request with delay (htaccess)

I'm trying to figure out if it is possible to configure a webserver so that requests for files will be served with a delay. So for example if i were to serve this file ...
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
0answers
37 views

Keeping Firefox from adding “.html” to url

I've been messing with .htaccess for a while, and have the following rule: RewriteRule ^(mypage|myotherpage)/?$ main.php?p=$1 [L,QSA] If I enter http://mydomain.com/mypage/, it displays main.php as ...
0
votes
1answer
389 views

rewrite url in address bar without changing the actual url

Im 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 1 -http://niresh12495.com/index.php?app=downloads and when i ...
0
votes
1answer
422 views

remove the question mark from url using htaccess

i have tried to remove the index.php from url but the problem is I'm seeing an ugly question mark in the beginning of the url how can i get rid of it This is the code i have used in htaccess ...
2
votes
1answer
296 views

.htaccess Allow access not file by link only

I know that is possible to limit the access to a directory by the allow from ip.ip.ip.ip directive. But I've got a slightly(?) different problem: There is a directory, that contains pdf files only. I ...
1
vote
1answer
640 views

how to redirect a url with port via htaccess

Im Trying to Redirect a Single url like http://tracker.niresh.co:12495/announce to http://tracker.niresh.co/announce.php How can i get it working through htaccess ?
3
votes
0answers
135 views

why Safari always GET status 200, never 304 for my .swf file?

I serve a Flash app as a .swf file (with HTML wrapper file), and Safari always retrieves with GET status = 200, never 304. Thus, Safari never uses cache for this file and downloads it each time (it's ...
0
votes
3answers
3k views

MAMP .htaccess file not working

I'm looking for a while now how to enable .htaccess files in MAMP 2.1.2 I have the following settings: httpd.conf LoadModule rewrite_module modules/mod_rewrite.so ... # # DocumentRoot: The ...
0
votes
0answers
101 views

Show files in Apache directory listing while protected by authentication

I'm using Apache with a directory listing by mod_index Now I'm using a basic http-auth to ensure that some files can only be accessed with the credentials <Files *.dat> require valid-user ...
0
votes
1answer
54 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 ...
1
vote
0answers
163 views

mod-rewrite rule not working properly for files in sub directories

I'm using the following rewrite url to get prettier urls: RewriteRule (\d+)/(.+) $2?companyId=$1 [NC,L,B,QSA,NE] The url /invoices.php?companyId=123 can for example be expressed as ...
0
votes
1answer
46 views

Allow other instances of files that is globally blocked in htaccess?

I am using the following command inside home/ to block all access to wp_login.php <Files wp-login.php> order deny,allow deny from all </Files> How can I allow certain instances of ...
1
vote
2answers
35 views

Apache rewrite downside?

Say I have my website stored on domain.com/mysite I add a rule in .htaccess to rewrite the URL to domain.com Is there any downside to storing the site in a subfolder and rewriting the URL like this? ...
0
votes
1answer
125 views

Allow access from internal files, but denying access externally

I am trying to figure out how to deny access of a font on a website from external access. This means the user should be denied if they point their browser to the url While still allowing the css ...
1
vote
1answer
185 views

Redirect invalid paths using .htaccess (e.g. “home.php/xyz”)

I am running Apache 2.4.2 on my local server. My website's .htaccess file is as follows: DirectoryIndex home.php Options -Indexes ErrorDocument 404 /404.php This works great at displaying an HTTP ...
1
vote
0answers
95 views

.htaccess Not Working as Expected [closed]

I have a hosted account not linked to any domain at /~me. In this home directory I have a .htaccess file: Options +FollowSymlinks RewriteEngine on RewriteRule 123.html cgi-bin/example.php [nc] ...
1
vote
1answer
253 views

Multiple .htaccess auth sources

I'm attempting to use LDAP authentication alongside regular .htpasswd authentication, i.e., a user may use a valid LDAP user/pass OR one of the user/passes in .htaccess. The LDAP login is working ...
0
votes
1answer
2k views

How to configure XAMPP to list all files and directories, including index files?

I want to configure XAMPP to show all files and folders in a given directory, even index files. But when I browse to the directory, index.php is run automatically instead. What settings can I use in ...
1
vote
1answer
737 views

CentOS 5, cannot accept htaccess

I have problem with htaccess on my vps.I installed CentOS 5, uploaded site on /var/www/html and it works.But, htaccess isn't working.I tried to add AllowOverride All in httpd.conf, also uncomment ...
1
vote
1answer
917 views

How to move from MAMP to native Apache on Mac OS 10.7

I just upgraded my development computer to Mac OS 10.7.3 (Lion) from Mac OS 10.5.8 (Leopard), which required a complete disk erasure. For several years I've used MAMP to run a development server on ...
1
vote
1answer
978 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 ...
1
vote
1answer
174 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
706 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
48 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
2k 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
2k 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] ...
1
vote
2answers
94 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
209 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 ...
0
votes
1answer
542 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. ...
1
vote
0answers
229 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 ...
8
votes
1answer
7k 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
97 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
263 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)"> ...
1
vote
3answers
336 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 ...
2
votes
3answers
1k 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 ?