Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
1answer
242 views

Is there an API or programmatic way to convert “.htaccess” rewrites to “web.config” IIS Rewrites?

I know I can do it in IIS Manager, but I am looking for some programmatic way to do it. We need to do this for customer all the time. So it would be great if there's a programmatic way of doing so.
0
votes
1answer
210 views

Cyclic redirection in .htaccess

I have the following .htaccess file: AddDefaultCharset utf-8 RewriteEngine on Options +SymLinksIfOwnerMatch RewriteBase / # redirect all www-requests to no-www # - RewriteCond %{HTTP_HOST} ^www\....
0
votes
1answer
53 views

Why would my new WordPress site require a 301 redirect?

I just finished moving a site from localhost to its final domain, and the thing is that the SEO guys is saying I need to make a "301 redirect" from the old site to the new one, but there is no such ...
0
votes
1answer
197 views

Can I redirect the HTTP request towards an old folder to the homepage using .htaccess file?

I have to following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). For some problems I delete it and I have create it again using ...
0
votes
1answer
170 views

Capitals in URL subdirectory not changed by htaccess

Within my WordPress website I am redirecting sub directories to internal and external links. Now, when you place a CAPITAL letter in the sub dir it does not work anymore and the website does not show ...
0
votes
2answers
324 views

Redirect pages to fix crawl errors

Google is giving me a crawl error for pages that I have removed like www.mysite.com/mypage.html. I want to redirect this pages to the new page www.mysite.com/mysite/mypage. I tried to do that by ...
0
votes
1answer
94 views

Most efficient way to forward domain.com to example.com/subfolder?

Title says my entire question. I think I saw someone forward domain.com to example.com/subfolder and have spent about a week trying to figure out how to best do this.. My goal is to have user type in ...
0
votes
1answer
172 views

How to ensure apache2 reads htaccess for custom expiry?

I have a site with Apache 2.2.22 . I have enabled the mod-expires and mod-headers modules seemingly correctly: $ apachectl -t -D DUMP_MODULES … expires_module (shared) headers_module (shared) … ...
0
votes
1answer
1k views

.htaccess non-www to www rule seems to work but the URL isn't changing in the address bar

On a joomla site, apache, shared hosting, I'm using next .htaccess rule: RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] The problem is that the browser's ...
0
votes
2answers
982 views

Redirecting IP address to domain address

Google has indexed the IP address of my site rather than the domain, so now I'm trying to set up a 301 redirect that will redirect the IP address and all subsequent pages to the domain. I currently ...
0
votes
3answers
222 views

Subdomain Is Redirected and Causing an Error Because www. is Added

On my site, say example.com, if I try to access test.example.com, Firefox automatically adds www. to test.example.com, making it www.test.example.com, which causes an error. However, if I visit a site ...
0
votes
1answer
118 views

Will rewriting your .htaccess to 404 to return search results from your site negatively effect your ranking in Google?

Depending on the type of site that you are running, it may or may not be advantageous to display search results instead of a 404 page, when someone visits a non-existent page on your site. I believe ...
0
votes
2answers
275 views

Redirecting requests for .html pages in subdirectories to the same page in root with .htaccess

I am porting a site from an old version of a CMS to a newer version which has different page addressing techniques. I'm unfortunately not very good with htaccess at all. URL/blog/sublblog/article....
0
votes
2answers
778 views

When using Mod_rewrite does google bot see the original url or the rewritten url?

If i use the bellow code in my .htacess file would google bot (or any other search spiders) see the example.tumblr.com url or would they see the same url as the user ie. example.co.uk/blog ? <...
0
votes
3answers
320 views

“Index of …” directory's files listing

On my courses we've got homework on site in folders such as: http://example.com/files/tasks1-edc34rtgfds http://example.com/files/tasks2-0bg454fgerg http://example.com/files/tasks3-h1dlkjiojo8 ... ...
0
votes
1answer
424 views

subdomain to subdomain forward with masking

I want to forward with mask from one server to another server. In Server One: www.abc.com test.abc.com live.abc.com In Server Two: http://ipaddress.com/folder1 http://ipaddress.com/folder2 test....
0
votes
2answers
2k views

.htaccess rewrite www to non-www and remove .html

I need rewrite rules to redirect the following: http://www. to http:// /file.html to /file I've tried using a combination of these but each time it results in a redirect loop on one of the ...
0
votes
1answer
200 views

htaccess performance issues vs restarting the server

 I usually use the server config file for settings that I would like to apply to my applications (at least in the development environment), and constantly have to re-start the server.   I ...
0
votes
1answer
55 views

Domain problem: viewing one site OFF another site?

I have this scenario: I have a domain, let's call it "mydomain.com". Mydomain.com runs various "sub-sites", e.g.: mydomain.com/shop/view/shop1, mydomain.com/shop/view/shop2, mydomain.com/shop/view/...
0
votes
1answer
113 views

Prevent hotlinking of attachments

People are able to embed my forum's attachments (vbulletin). I tried to create an htaccess rule for the hotlinking, but it did not work. RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^...
0
votes
1answer
140 views

Rewriting isn't doing what's expected

I've got a simple web.py application, running at Dreamhost. The .htaccess file, per the DH documentation is in the example.com home directory, not public: Options +ExecCGI AddHandler cgi-script .py ...
0
votes
1answer
702 views

.htaccess 301 rewrite rule not working

I had made the page the-book.html in wordpress site, later changed the name to about-the-book, now i have written the .htaccess file as **RewriteRule ^the-book.html$ http://www.conversationissexy.com/...
0
votes
1answer
175 views

Is it possible to limit user access to folders using HTACCESS?

Is it possible to limit user access using a HTACCESS file? I'm not quite sure how to edit folder permissions with the host i'm with so I figure using an HTACCESS file might be easier.
0
votes
1answer
106 views

seo htaccess 301 redirect

Have an SEO question. I have been checking the progress of my site indexing in Google, for some bizarre reason best known to itself, there is a very random URL indexed against my domain which doesnt ...
0
votes
1answer
514 views

Htaccess 404 & 301

The site runs on WordPress (latest) and is installed in /htdocs/www/. This htaccess file is in /htdocs/www/roh/ along with a bunch of images and some CSS. I want requests to the old html files to ...
0
votes
1answer
170 views

I have 2 domains one main, one parked. I recently switched but host provider told me theyd repoint the DNS but there are problems? Do it via DS

I wanted to switch my site from www.mutantspace.ie to www.mutantspace.com. Up until now the .com was my parked domain. I looked into it and was told that using this code in my .htaccess file in www....
0
votes
1answer
157 views

Having hard time to hide directories on my site

i'm trying to hide some directories on my site by returning 404 not found error codes instead of forbidden, the problem is that the files in the directory becomes not available to php. how can i hide ...
0
votes
1answer
341 views

Adding 1 subdomain using .htaccess

Alright, so unlike other solutions I only want one subdomain to appear to be added. Say I wanted example.com/folder/page.php to be displayed as foo.example.com/folder/page.php, how would I go about ...
0
votes
1answer
40 views

Why don't I have a loop error with these redirects?

I know this may seem a bit of a question in reverse, but I actually don't seem to have a problem I just want to make sure before I proceed. I have 2 domains domain1.com and domain2.com and a ...
0
votes
1answer
443 views

.htaccess mod_rewrite domain to subdomain

I need to redirect any domain to a sub-domain. I know this has got to be possible but for the life of me i can not figure it out. Any help is appreciated. For example: domain1.com domain2.com ...
0
votes
1answer
78 views

Trouble with .htacess redirection

I use this redirect rule to redirect users from www.domain.com/admin to www.domain.com/wp-admin on a WordPress site. RedirectMatch 301 \@admin http://www.domain.com/wp-admin The problem is that ...
0
votes
1answer
751 views

Help with URL and HTACCESS

I have a social engine 3 website, in my website all URLS can be changed(URL-REWRITING) through the SE-url settings automatically, but in my website their is one module which is custom coded, where I ...
0
votes
2answers
392 views

htaccess file isn't working, but did work before

I just moved from a dedicated server to a shared server to save money, but now my htaccess file doesn't work. I think its 1and1, but I'm not 100% sure. What the heck is wrong? Any ideas? The single ...
0
votes
1answer
773 views

.htaccess: Redirect Hotlink Flash --> Site with embed Flash

I have some PHP sites that embeds SWF files. These SWF files are now linked to by some other guys. And I don't want them to simply open the SWF, I want them to force being redirect to the page where ...
0
votes
1answer
164 views

Propagaging Apache rules Automatically for all folders Beneath Root

my webroot folder /httpdocs folder contains a .htaccess file The first lines look like this: RewriteEngine on RewriteBase / AddDefaultCharset UTF-8 Options +FollowSymLinks -Indexes -ExecCGI # ...
0
votes
1answer
163 views

How can I work on a WordPress theme already installed in the root directory?

I have WordPress installed at the root level of a website. I thought it would be easy enough to have a "coming soon" page called default.html and edit the .htaccess file as follows: AddHandler php5-...
0
votes
1answer
330 views

Website won't load in Firefox 3.6.13

After the latest version of Firefox came out, I've been having problems with my website. The site is: http://mojheroj.com It works fine in all other browsers, as well as older versions of Firefox and ...
0
votes
1answer
155 views

Controlling Access using htpasswd and htaccess

I've got a bit of a peculiar problem on my site. I'm using a .htaccess and .htpasswd file to protect the root of the site. This works great, but when I try to view a video file on my site, it prompts ...
0
votes
1answer
175 views

Restrict access of rewriting file using .htaccess

I rewrite my .php files to .htm, using the following code in .htaccess file. RewriteEngine on Options +FollowSymlinks RewriteRule ^(.+)\.htm$ $1.php [NC] This is working fine. But now I want to ...
0
votes
0answers
12 views

301 redirect a subdomain to the root domain with www [duplicate]

I want to re-direct all requests to http://subdomain.example.com to http://www.example.com What should the code be?
0
votes
0answers
24 views

Fastest .htaccess redirect from example.com to www.example.com?

Now using the standard cPanel-created Apache .htaccess redirect, but it's taking a full 2 seconds to go from ´example.com´ to ´www.example.com´. Is there a faster method? Or should I let go of the ...
0
votes
0answers
40 views

How to add http:// prefix to subdomain redirect in htaccess

I am rewriting a subdomain URL with a query (cart.example.net/ProductDetail.jsp?LISTID=7C0400-1101763508) to a www subdomain (www.example.net/product-category/product). The problem I am facing is the ...
0
votes
0answers
9 views

Redirect old domain to new domain masking [duplicate]

HOW To Redirect www.OLDDOMAIN.com to www.NEWDOMAIN.com with masking.
0
votes
0answers
14 views

Redirect site 1 to site 2 from site 2? [duplicate]

We have two web servers: one with domain "www.sitename.com", and another with "home.sitename.com". Is it possible to do a mod_rewrite from the home.sitename.com server htaccess file that would ...
0
votes
0answers
7 views

We cannot stop subdomains redirecting to the main domain [closed]

The subdomains of our website besthomecarefranchise.info keeps redirecting back to the main site, you can see it here, http://raymondadamcik.besthomecarefranchise.info/, we've spoken w/ the techs here ...
0
votes
0answers
49 views

How to redirect all pages and all subdomains of a domain to the home page of another domain

I have an domain (www.aaa.com) and an alias (www.bbb.com). The alias domain points to the aaa.com domain, but that's not what I want. I want www.bbb.com to point to www.ccc.com. I have the following ...
0
votes
0answers
5 views

Excluding a file from an IP block [duplicate]

I have recently converted a pre-2.4 configuration to Apache's new authorisation configuration but ran into a problem/misunderstanding concerning more than one RequireAll block. What I am basically ...
0
votes
1answer
45 views

Google not updating title with htaccess expires

It's been 2 weeks I've changed my website title and still Google hasn't changed the title in search engine. I think it's because of if modified since header... my website is generating 201 OK status ...
0
votes
1answer
48 views

fail2ban logs IP address trying to access server, enough?

I have fail2ban and logwatch set up. There are IP addresses that are banned > 20 times every day for trying to brute force (I assume) access the server. I have added these IP addresses to the ....
0
votes
0answers
17 views

Redirection rule not working in .htacces [duplicate]

I have added the following rule to .htaccess RewriteCond %{HTTP_HOST} !^example\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://www.example.com/$1 [R=301,NC,L] I ...