Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

2
votes
2answers
269 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
2answers
214 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
48 views

Duplicate content error results instead of a 404 page

My current URL is: www.example.com/category/we-developer/ However, if any user mistakenly adds extra characters after the /, for example, www.example.com/category/we-developer/fgggfgg, it should take ...
1
vote
2answers
139 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
115 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 to example.com. But when I get into the Google Webmaster ...
3
votes
1answer
191 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
39 views

Redirecting HTTPS to HTTP without purchasing another IP address

So in the past I have always bought a new IP when working with SSL certs. I came across a client that is on a shared IP and using a cert for one of the sites but not the others. So domain #1 has cert ...
1
vote
1answer
40 views

Avoid 301 redirect in cdn.domain.mx

I have a domain with a .htaccess redirection problem. The active CDN the URL should be: cdn.domain.mx/images/test.png but redirects: cdn.domain.mx/images/something.png -> ...
1
vote
1answer
199 views

htaccess/cPanel 301 redirects not working for add-on domain

I've already looked at many samples and tutorials how to set up those 301 redirects on Apache and can't figure out why some are not working. Whenever I want to redirect any still existing page from ...
1
vote
1answer
372 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
70 views

Showing content from pages at different URL's (masking), possibly with .htaccess

If I have URL's like:- domain.com/category/widgets/filter/blue domain.com/category/widgets/filter/red And it is pretty difficult to reconstruct them to something like:- ...
0
votes
1answer
225 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 ...
2
votes
0answers
107 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
20 views

Apache virtual hosts configuration for MAMP results in new sites going to the same folder

I have MAMP installed in my mac. Why is it that every time I create a new site, they all go to the same folder? Here is my /etc/hosts file: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 ...
1
vote
0answers
118 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
100 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
174 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
181 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
85 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
58 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
312 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
14 views

Passing Arabic values in parameters results in % spaces

I have built an .htaccess clean URL, this part works perfect in my .htaccess: RewriteCond %{THE_REQUEST} /road.php\s [NC] RewriteRule . نقفورالثانيفوكاس/ [R=301,L] RewriteRule ^نقفورالثانيفوكاس/$ ...
0
votes
0answers
19 views

IE not using AES on Website

I hope I chose the right topic this time :) So: I wanted to disable RC4 and "force" PFS on my website. Without modification, every browser used RC4. As I don't have access to the root directory I did ...
0
votes
0answers
60 views

How to prevent a 404 Error when creating a subdomain and using www to access it?

I have installed a multi-site installation of WordPress onto my domain. I then added the necessary code to the wp-config.php file and .htaccess as instructed by WordPress. I also installed a plugin ...
0
votes
0answers
51 views

.htaccess and 301 redirects .co.uk to .com

I want to redirect a .co.uk to .com: example.co.uk/any-file-or-folder and example.com/any-file-or-folder to www.example.com/any-file-or-folder. I've refered to this question/answer: htaccess and ...
0
votes
0answers
70 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
33 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
274 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
47 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
222 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
30 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
43 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
28 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
183 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
229 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
32 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
290 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
227 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
206 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 ...
-1
votes
0answers
16 views

Error Using htaccess

I am using Wordpress site .When We change the permalink to postname the htaccess will be changed so they go to the plain code RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f ...