Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

2
votes
1answer
63 views

Simple RewriteRule [duplicate]

I'm trying to write a RewriteRule to make a simple url. I want users to be able to type enter www.example.com/somepage and have it take them to www.example.com/abc/somepage.php How can this be ...
3
votes
2answers
178 views

Using .htaccess for proper indexing/SEO of timthumb images

I don't know a whole lot about the intricacies of SEO so I was wondering if someone here could provide some insight to this problem. When you use the php script timthumb on a website, it means images ...
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$ ...
3
votes
2answers
231 views

Can the .htaccess file slow down a website to a crawl? If so, are there better ways to solve these problems with different rewrite rules and such?

here is my htaccess file...... RewriteCond %{REQUEST_URI} ^/patients/billing/FAQ_billing\.html$ [OR] RewriteCond %{REQUEST_URI} ^/patients/billing/getintouch\.html$ RewriteRule ...
3
votes
1answer
742 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" ...
0
votes
0answers
20 views

New to URL Rewrite [duplicate]

I have absolutely no knowledge in this and have tried several attempts to turn http://mcserverworld.net/library/site/register.php into http://mcserverworld.net/register I am using a xampp ...
1
vote
1answer
192 views

Combine redirect to naked domain and point existing content to /blog

I think the .htaccess setup for this ought to be fairly straightforward, but I'm having a hard time with it for some reason. I've just completed the migration of a WordPress single site installation ...
1
vote
1answer
170 views

Canonical URL issue for www.takemyview.co.in

My shares and stock market analysis an advisory website has canonical URL problems. My web server is not able to resolve this issue for now using htaccess or any other means and all my SEO efforts are ...
2
votes
1answer
180 views

Redirect domains single pages and maintain url

I have several domain names that need to point to individual pages on a single host and still maintain the URL. For example: examplesite1.com needs to point at mainsite.com/examplesite1.php but ...
3
votes
1answer
639 views

Can I allow access to a HTML page only if the user comes from a specific site with .htaccess?

A website with two HTML pages, A and B. Both can be accessed by typing the URL, of course. However, can I disallow any access to page B, and only allow it if the user is coming from page A? As in, a ...
2
votes
1answer
553 views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
1
vote
1answer
182 views

Rewrite rule for 403

I have an .htaccess file: In this file it redirects to index.php in case a file or directory is not found. My code is as below: <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} ...
1
vote
1answer
76 views

.htaccess keeps being deleted from my root directory

I have a site built on the ModX Evo CMS. I have noticed that almost every day the .htaccess file is deleted meaning the FURLs no longer work. I have scanned for viruses and found nothing. Does anyone ...
0
votes
1answer
122 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 ...
1
vote
2answers
121 views

Showing index.htm and index.php both

I have a static HTML based site. Server automatically pulls the index.htm as the default page. Fine. I just installed WordPress in the root: But .com/index.php is redirecting automatically to ...
0
votes
1answer
397 views

How to fix this 404 soft error?

I have a static HTML website. www.example.com/?12345 (this page doesn't exist) redirects to www.example.com and www.example.com/page.html?12345 redirects to www.example.com/page.html. I don't know ...
0
votes
3answers
492 views

301 redirect from “/index.html” to root if index.html not exist

Can I create 301 redirect from "index.html" to root directory if file "index.html" not exist? For example: link "http://example.com/index.html" show "404 Error" page. I need 301 redirect to root ...
0
votes
2answers
61 views

How to change a URL using .htaccess

I don't know anything about coding, but I really want to change the URL of my pages: site/data/9/Symbian-3rd-Apps.html to site/symbian_applications.html ...
0
votes
1answer
547 views

.htaccess Redirect based on subdomain

I'm looking for some help in accomplishing redirects based on the subdomain. For example if some tries to access: http://1.test.com it will redirect to: /file.php?test=something and if ...
1
vote
2answers
225 views

What type of server is using Django/Python? .htaccess is compatible?

I was wondering what type of server is using python & django because i don't know if can i use an .htaccess file and if there is something similar. Thanks.
2
votes
1answer
84 views

.htaccess redirect with mod_rewrite

I moved my wiki from http://jklatex.square7.de/wiki/doku.php/start to http://logicpuzzle.square7.de/start and now i want to redirect the URL with mod_rewrite. My .htaccess is as follows: # BEGIN ...
0
votes
1answer
1k views

Turning openbase_dir off using .htaccess

I'm trying to run a script on my shared hosting account, I keep getting an error relating to open_basedir, which I understand would normally be turned off in the php.ini file, which I don't have ...
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
2answers
167 views

Issue with Apache redirection [duplicate]

I want to redirect mysite.com or http://mysite.com or www.mysite.com or any other format given my user to http://www.mysite.com, I'm able to achieve this by rewriting following lines in my .htaccess ...
0
votes
1answer
99 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 ...
2
votes
2answers
45 views

Need to remove www for only one sub directory from a domain

I have a domain like www.example.com. I need to remove www. from specified sub folder by using a .htaccess file. Example : www.example.com/blog should redirect to example.com All other sub ...
3
votes
3answers
443 views

SEO Joomla URL to WordPress URL's

I am trying to migrate from Joomla 1.5 SEF URL's to WordPress SEF URL's. The old links use this formatting: /site/sectionname/categoryname/id-titlename.html I want to migrate it to ...
3
votes
2answers
202 views

prevent hotlinking of off-site content?

I have a www.example.com site where I serve all static content (e.g. http.//www.example.com/image.jpg) off a CDN with URLs like http://static.example.com/image.jpg An Apache 2 .htaccess rule ...
1
vote
1answer
62 views

Keep visitors out of server directories and redirect

The web application I use (Zenphoto) stores images in /albums and subfolders. It's backend needs r/w-access to those folders and I need r/w-access to the folders via ftp, but the frontend never looks ...
1
vote
2answers
378 views

How to prevent a specific website from linking to our domain?

We have a landing page which is used only for running an ad campaign. There is a website that has found this link somehow and is linking to it. I've been told by marketing they don't want that website ...
0
votes
2answers
221 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 ...
3
votes
2answers
94 views

Installing a PHP framework to a host without public_html or www folders (ftp is DocumentRoot)

I've developed a PHP framework that operates with the directory structure of / /classes/ /templates/ /.../ /www/ (public_html) But I've come across a host that only allows ftp to the ...
1
vote
1answer
259 views

Don't $_GET value on link rewrite with .htaccess

I config enable htaccess on my server (i enable mod_rewrite and do like this: http://stackoverflow.com/questions/11064005/enable-htacess-error-on-ubuntu-12-04-with-apache2) But on localhost is run ...
2
votes
1answer
1k views

What is redirecting mobile visitors to our website?

Our site may have been hacked. It loads okay on desktop browsers, but on mobile devices it redirects to a porn site. I can't see anything in the source code or .htaccess which would be causing this. ...
2
votes
3answers
109 views

We changed our domain a year ago to .com but old site is still number one when searching

I changed our companies domain name a year ago from radfan.co.uk to radfan.com. When typing radfan into Google the number one result is still radfan.co.uk rather than the .com. This is not the case ...
2
votes
1answer
53 views

Handling APACHE file caching

I have used .htaccess to cache images, css and javascript files on my server for up to a month. My problem is that some users get updates that I made recently and all works normally while some user ...
5
votes
3answers
224 views

Organizing website files

I want to start creating my website but I have a few questions. http://website.com/directory/webpage - in this kind of website, it does not display a .php or .HTML extension at the end. How to ...
1
vote
1answer
34 views

Trouble reading htaccess canonicalization

I just took over development of a site and am having trouble figuring out the canonicalization rewrite rules (not my forte). I've pasted the code below. The first bit seems straight-forward enough, ...
2
votes
1answer
400 views

edited and reversed changes on .htaccess - site starts redirecting to .comindex.php/

Site is a Joomla 2.5 site. I wanted to add a non www to www redirect to the htaccess file, did so, then the redirection went mad, reversed but still the site redirects. When i click view site in ...
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 ...
1
vote
1answer
50 views

Host website on UNIX, but email on Windows?

Client has web hosting and email hosting from one web provider. Their email hosting is integrated with their systems for their office — an Exchange server (located on their premises). Both are on a ...
2
votes
1answer
253 views

Redirects On Image Files to Counter Google Image Gallery

The recent update to the way that Google displays images appears to have resulted in a significant drop in the traffic reaching the actual pages of our website. We are considering potential solutions ...
2
votes
1answer
92 views

Which way to forward alternate domains?

I have a few alternate domains that I want to point to my main domain: Main: awesomewebsite.com Alternates: awesomewebsite.net, awesomewebsite.co, awesomewebsite.me Which is the best way to forward ...
0
votes
1answer
354 views

block libwww-perl on windows server 2003

Could anyone tell me how to block access to a website for "libwww-perl" agents. Can only seem to find .htaccess solutions. Many thanks john
3
votes
1answer
143 views

301 redirects… www. > http … the entire sitemap

I submitted a duplicate sitemap some time back to incorporate the www. addresses when I saw my site was not directing there when I typed it directly in the address bar. As I have edited my site and ...
0
votes
1answer
548 views

How to remove www from both http and https

I've got an ecommerce site where we're have some reports (random) of the cart not operating correctly. I think it might be due to removing www not working with https my current htaccess code looks ...
2
votes
1answer
309 views

Removing file extensions off the url

I am looking for a way to remove the extensions off the end of the Url. So say for example www.example.com/about.html. This would change to www.example.com/about I've looked around and searched for ...
3
votes
2answers
132 views

Redirecting WWW.website.com to website.com

I ranked my site at Nibble.com and i was going through everything, checking for ways to improve my website, and I noticed that www.website.com was classed as a duplicate of website.com. How do I ...
2
votes
2answers
87 views

My .htaccess entry is not working

The below are all my .htaccess entry: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.acethehimalaya\.com$ [NC] RewriteRule (.*) http://www.acethehimalaya.com/$1 [R=301,L] redirect 301 ...
3
votes
1answer
2k views

How to redirect specific url to 404 in htaccess?

I want to redirect only one specific URl (ex. mypage.com/1234/page/) to error page 404. How to achieve it in htaccess?