Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

2
votes
2answers
124 views

Error 404 after rewrite query strings with htaccess

I'm trying to redirect the URLs of a client's website like this: www.localsite.com/immobile.php?id_immobile=24 In something like this: www.localsite.com/immobile/24.php I'm using this rule in ...
1
vote
2answers
2k views

“File does not exist” in Apache error log when mod_rewrite is using

I am getting below error in server log, when re-writing the URLs. [Fri Jan 25 11:32:57 2013] [error] [client ***IP***] File does not exist: ...
1
vote
2answers
124 views

How can I rewrite a subdomain to go to a specific file in a specific folder?

I've done searching for my answer and have tested a few solutions, but nothing has worked so far. I'm trying to get a URL like this http://baseball.sports.com to rewrite to ...
0
votes
2answers
125 views

SEO friendly URL

I want to create SEO friendly URL for my website. I am creating a .htaccess file but these file not run in Bluehost. Bluehost gets an "Internal Server Error": The server encountered an internal ...
0
votes
2answers
45 views

Using a front controller design pattern doesn't allow images to be served

I am currently using a front controller. All requests for my website go through it. I have a problem with image links like: <img src="img/image.jpg" /> Then my front controller will try to ...
2
votes
1answer
151 views

Using .htaccess, can you hide the true URL?

So I have a web hotel with 1 main website http://www.myrootsite.com/ and a few websites in subdirectories, in a folder called projects. I have domain names pointing to the subdirectories, but ...
2
votes
1answer
353 views

Apache htaccess results in files being downloaded instead of displayed

So I had this "beautiful" website that did exactly what I wanted it to do. Then I shut down my PC, reboot and...the pages just download now instead of being displayed. I re-installed XAMPP and ...
2
votes
1answer
149 views

Site migration and SEO impact

I'd greatly appreciate a response on the following question relating to site migration and SEO impact. Here's some background on how my domain name and site is currently configured: My domain name ...
1
vote
1answer
48 views

How to noindex a 404 page using .htaccess?

I have several 404 not found pages which I would like to noindex through .htaccess. how do I do it with X-Robots-Tag?
1
vote
1answer
119 views

Redirect with HTTP_HOST redirects to sub subdomain

The settings I have the following .htaccess rule RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} !^de\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] This works great to ...
1
vote
1answer
174 views

How to configure mod_bwlimited through htaccess

The mod_bwlimited module in htaccess apparently displays an error if bandwidth is exceeded. Anyone know what options are available for configuring it through htaccess?
0
votes
1answer
16 views

htaccess redirect to public folder caught in authentication

I have an .htaccess file at the root of my server which has auth on it. I have a redirect statement that upon entering example.myserver.com instead of myserver.com redirects the user to a sub folder ...
0
votes
1answer
19 views

local install of wp site brought down from host - home page is ok but other pages redirect to wamp config page

local install of wp site brought down from host - home page is ok but other pages redirect to wamp config page. I got all local files from host to www dir under local wamp. I got database from host ...
0
votes
1answer
33 views

Google still has record of my old site URL - what to do?

I had a blog site, i.e. http://example2.com, then I bought a new domain, i.e. http://example.com and 301 permanent redirected example2.com into example.com. But when I get into the Google Webmaster ...
0
votes
1answer
27 views

Masking / mapping URL's with .htaccess

I've recently been trying to come up with a way of masking the visible URL in the browser (so not 301 redirecting) and still show the same content as the original URL. Here is the scenario... ...
0
votes
1answer
49 views

Is there a “current directory” variable in .htaccess RewriteRule?

In a .htaccess file in the subfolder "/preview" (not in document root), I have this rule: RewriteRule !^public/ /preview/forbidden.php [L,R] It redirects all /preview/"something" requests that are ...
0
votes
1answer
23 views

Geolocalization of my website

I have a big problem with Geoip. My website has the following structure www.domain.com it.domain.com de.domain.com I use the maxmind geoip module in my Apache to redirect users in the appropriate ...
0
votes
1answer
28 views

Redirecting a Preview DNS subdomain to a domain with htaccess

I want to redirect all the WordPress urls of the form http://example.com.previewdns.com/my-favorite-post/ to http://example.com/my-favorite-post/ I am trying to do this with the below .htaccess ...
2
votes
0answers
92 views

Replacement for DirectoryIndexRedirect for older versions of Apache

DirectoryIndexRedirect is available in version 2.3.14 and later. (mod_dir) Is there an alternative method for older versions? I have different DirectoryIndex directive sets for a lot of directories ...
1
vote
0answers
22 views

Password protect directory with .htaccess and .htpasswd on direct-admin

In my last cpanel hosting I protect directories by this .htaccess code: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] RewriteRule ^(.*)$ ...
1
vote
0answers
28 views

Apache HeaderName does not work in .htaccess

So I have a .htaccess file in a subdirectory that contains a list of folders. In the main directory I have a .htaccess file that contains: Options +Indexes IndexOptions FancyIndexing AddType ...
1
vote
0answers
136 views

Require domain alias to show in browser address bar

Similar to question posted here (but not related to sub directories): .htaccess redirect of domain name alias to main domain but must show up as the alias domain I am trying to direct traffic from an ...
1
vote
0answers
164 views

Is my .htaccess rule creating an infinite loop?

Whenever I type a made up address that includes a directory index it removes it. The problem is when the the address includes a forbidden subdirectory. It reduces itself until it hits forbidden. How ...
1
vote
0answers
73 views

How can I mask sub-directory to work as DocumentRoot for multiple domains pointing to the same location?

I am trying to mask sub directories to effectively work as DocumentRoot for multiple domains. e.g. I have two domains - domain1.com & domain2.com both pointing to the same location. I want ...
1
vote
0answers
55 views

optimize htaccess

I have two condition which are conflict RewriteRule ^patients/findadoctor/(.*)\.html$ subcategorydoctor.php?id=$1 [L,NC] and RewriteRule ^patients/findadoctor/(.*)\.html$ ...
1
vote
0answers
272 views

404 error on a file/directory that exists?

We are using the vBulletin system. I have set it up so that it redirects 404 error's to a php page, so it follows the theme of the forum. However, if I go to a directory that exists (the admin ...
0
votes
0answers
6 views

Can't get Rewrite rule to keep original URL

I have these Rewrites, but I would like to have the URL stay the same as what is typed originally, I thought removing the [R] flags would stop it but it hasn't RewriteCond %{HTTP_HOST} ...
0
votes
0answers
31 views

HTTPS redirect to HTTP not working with 'www' subdomain

I have 2 rules on my site: one to force the www subdomain, and another to force the HTTP protocol: RewriteEngine On RewriteBase / RewriteCond %{HTTPS} =on RewriteRule ^ ...
0
votes
0answers
30 views

Is it possible to forward a domain with one subdomain exception?

I have a www.example.co as my primary domain and a domain example.technology is forwarded to that domain. Now, can I add an exception for subdomain.example.technology to this confuguration? If the ...
0
votes
0answers
93 views

SocialEngine 4.5 redirect loop problem

I am installing SocialEngine 4.5. Here is the .htaccess file in the first level of the SocialEngine /public_html/social_engine2/ directory: # $Id: .htaccess 7539 2010-10-04 04:41:38Z john $ ...
0
votes
0answers
31 views

Apache: keep track of non-404 errors (e.g., 403, 500, et al)

In cpanel I always have the error log open ("This function will display the last 300 errors for your site.") which is nice for 404's but what about the rest? I'm working on a few things in htaccess, ...
0
votes
0answers
99 views

Remove fb_action_ids of the URL with .htaccess

For some reason my host not let me have more than one htaccess so I have to make all the changes from the htaccess located in the root. My directory tree is as follows: ..../ ....index.html ....css ...
0
votes
0answers
27 views

Visitor statistics distorted due to domain forwarding

I am forwarding traffic from one domain to another which is hosting a site with Google Analytics. The forwarding is done via the registrar's URL forwarding tools, which allows us to avoid creating an ...
0
votes
0answers
27 views

cPanel redirects not working on extensionless files

I'm trying to redirect the address http://example.com/newsletters/January%20Newsletter%20 to http://example.com/newsletters/JanuaryNewsletter.pdf using cPanel's redirect manager, but it doesn't seem ...
0
votes
0answers
27 views

Restricting A Directory Through .htaccess

I'm trying to put all of my FTP accounts into a folder on /public_html/ftp and password protect it so search bots can't crawl their private files. I'm also trying to redirect all site traffic from the ...
0
votes
0answers
152 views

Redirect using .htaccess for missing images

I have image file URLs getting generated by Drupal CMS as: ...file.pdf?itok=xbXNF I simply want to check till the .jpg part if it does not exist. If it does not exist then I want to do a 301 redirect ...
0
votes
0answers
195 views

URL rewriting on multiple domains hosted on one GoDaddy account

Note: I think this question has been asked before but no clear solutions have been discovered. I had developed a site in PHP that uses clean URLs: For example: www.example.com/about ...
0
votes
0answers
29 views

Domain forwarding to new sub domain not working

I've a site www.xyz.org which I've migrated to xyz.newsite.org. It has been more than a month but Google is still showing www.xyz.org in the SERP. I've migrated another site exactly in the same way ...
0
votes
0answers
79 views

GoDaddy: “No input file selected” and .htaccess with mod_rewrite?

This is a GoDaddy hosting problem I believe but I have no choice but to stay with them because of my clients. I have recently installed Open Classifieds 2 and was told during installion mod_rewrite ...
0
votes
0answers
259 views

htaccess doesnt work in subfolder

I'm using xampp with apache on my windows machine. My directory structure is: C:/xampp/htdocs ---------------/Sync --------------------/ProtectedFolderA ...
0
votes
0answers
207 views

How to allow a Subdirectory to work and stop redirecting?

I run Drupal on a webserver in the root www directory. I have added another application in a www subdirectory (Piwik). When I try to navigate to the subdirectory app, I get this error message "The ...
0
votes
0answers
170 views

SIMPLEST way to set up password protection for a static site, with basic admin UI?

I have a static site. I would like the simplest approach to password protecting a directory, with a basic admin UI for adding/removing users. I will have so few users that I don't care about ...