-1
votes
1answer
31 views

Point a new domain at existing files but keep new domain url

I have a directory: http://mysite.com/somedir/ I have a new domain: http://myothersite.com I want my new domain to point to the files in http://mysite.com/somedir/ but retain it's own url. So that a ...
1
vote
1answer
54 views

Apache2 htaccess issue [duplicate]

I'm currently having issues with getting Apache2 to recognize an .htaccess file. I'm currently running the server locally on my machine for testing purposes. I can get my index page to load up ...
1
vote
2answers
127 views

Apache2 mod_rewrite failing for non-existent sub directories [duplicate]

An even shorter version of my .htaccess file (Last RewriteCond wasn't there) use to work perfectly on my shared web hosting but I've moved to a VPS with Ubuntu 12 with it's stock Apache2 but it simply ...
0
votes
1answer
84 views

Server remembering old rewrite rules, even when I remove htaccess

I have set up a development server with Ubuntu and LAMP, but for some reason the .htaccess is acting strange... There is a site on there with a set of rules, when I comment them out they still work, ...
1
vote
0answers
30 views

htaccess is not redirecting in server

I'm having problem with a .htaccess file removing request.php from URL. My htaccess file is <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
1answer
87 views

ubuntu 12.10 .htaccess still not working

I have just installed the Ubuntu 12.10 and I am getting some errors.. I have install the apache2 - ok. But when I am using the .htaccess file in my webfolders I am still getting error 403 forbidden. I ...
1
vote
4answers
2k views

.htaccess does not ask the password

I am using Ubuntu 12.04 and trying to use .htaccess on a page with apache2 server on it. My .htaccess file looks like this: AuthType Basic AuthName "Password Required" AuthBasicProvider file ...
2
votes
2answers
4k views

.htaccess deny from all does not work?

I am running Apache 2.2.20 on a Ubuntu 11.04 web server. I have a Joomla site running on it, but I have also added some custom content. In the main web directly I have added a folder ...
0
votes
0answers
57 views

ExpressionEngine htaccess on home made server

I have setup a little staging server running Ubuntu server. I have everything setup and working but i have come to use EE and used htaccess to remove the index.php from the URL and it does not work. ...
2
votes
1answer
116 views

.htaccess works for virtualhost but not for public_html

The problem is when I have a docroot pointing to some user's public_html/*. Say there is a virtualhost with Docroot /home/user/public_html/www - there .htaccess works. Yet when I go to ...
1
vote
2answers
586 views

Apache 403 - looking .htaccess in parent's parent directory

I am having this problem (apache2, ubuntu 12.04) I have put all my sites in /home/username/vhosts folder I have added permissions to home and username to be x and chmod -r 777 on vhosts Added ...
0
votes
4answers
2k views

.htaccess working on remote server but does not work on localhost. Getting 404 errors on localhost

MY PROBLEM: When I visit localhost the site does not work. It shows some text from the site but it seems the server can not locate any other files. Here is a snippet of the errors from firebug: ...
0
votes
1answer
309 views

.htaccess 301 redirect, same server

I set up a website at mywebsite.net, but recently bought the domain mywebsite.com. Now I updated the information on Google via Webmaster Tools and it recommended we set up a 301 redirect from the ...
2
votes
2answers
147 views

.htaccess ErrorDocument woes

I currently have an ErrorDocument directive defined inside my .htaccess file: ErrorDocument 404 /site/error.php Now if I go to a non-existent page like this on my site it works fine: ...
0
votes
1answer
149 views

.htaccess ignored, while apache.config says it's activated

edited for clarification, because all answers/comments where talking about other things then the topic until now I verified that my apache.conf (Ubuntu) says, that it looks for .htaccess and that it ...
0
votes
1answer
236 views

Followed the instructions to enable htaccess on ubuntu 11 to no avail

So I've followed these instructions to setup htaccess on my ubuntu 11 https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles and yet I'm not able to get a directory with an .htaccess ...
0
votes
1answer
122 views

Can't get mod_rewrite to work with ubuntu, have tried all the usual suspects (turning it on in config etc)

Stack, I'm trying to install a local version of my website onto my laptop so I can do development work without terrifying my users and exploding the live site. I went ahead and installed ubuntu on ...
8
votes
1answer
179 views

Create VHost & Forward subdomain to it

Gurus of So I have a simple .htaccess file where I only redirect non www to www for my webapp. Now what I want to do is Create a new vhost like http://subdomain.mydomain.tld Create a redirect for ...
0
votes
1answer
335 views

Apache2 not displaying one directory, causing .htaccess rules to fail. What's wrong?

I have a CodeIgniter installation in a VirtualHost on Apache2 on Ubunto Natty set up as follows: /application /system ... /www/index.php Here is my .htaccess which resides in /: <IfModule ...
1
vote
3answers
646 views

apache - forbiddend access to some static files

I'm having hard time with .htaccess directive. I'm trying to have URL rewriting for Codeigniter framework. Everything works as expected on the production server but i'm not able to set up properly my ...
1
vote
2answers
145 views

.htaccess 301 Redirect

I have an existing Wordpress site setup at mycompany.tld1 and recently registered mycompany.tld2. I want to setup a 301 redirect from mycompany.tld2 to mycompany.tld1, what would that .htaccess file ...
4
votes
1answer
2k views

Why would an .htaccess file result in 403 Forbidden when the only line is “Allow from all”?

I'm running a server: Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g Without a .htaccess file, everyone can access the web content. However, I add a .htaccess file with the following content: ...
-2
votes
2answers
863 views

Have Apache Parse PHP in .html Files on Ubuntu [closed]

I installed Apache and PHP by: sudo apt-get install apache2 sudo apt-get install php5 Then I created a .htaccess file in /var/www with: AddHandler application/x-httpd-php5 .html It parses PHP in ...
0
votes
0answers
145 views

contact in htaccess reserved word?

I am currently setting up a server to give our company a test server (2 man operation). I am trying to achieve the exact same behavior between the test server and the live server but I am running ...
1
vote
1answer
410 views

Can't get .htaccess to work

I'm using Apache2 on Ubuntu Lucid Lynx. I have config set to use .htaccess like normal. This is my default site: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot ...
0
votes
2answers
1k views

mod-rewrite not working on Ubuntu [SOLVED]

I'm trying to remove "index.php" in the CodeIgniter URLs. I have it working on my Mac (MAMP), but can’t get it working on my Ubuntu (Lucid) hosted server. This works: mysite.com/index.php/home But ...
0
votes
1answer
493 views

How to support multiple domains on one Web server?

I've set up an Ubuntu 10.04 LAMP server. I am going to set up multiple domains so that they will point to this server's IP. How to configure the server so, that it will serve a specific site (placed ...
0
votes
1answer
2k views

.htaccess Authentication Internal Server Error 500

I am trying to setup an authentication for a directory on a ubuntu server and when i sign in i get a 500 Internal Server Error I have the following: AuthUserFile .htpasswd AuthName "Sign In" ...
1
vote
2answers
2k views

Problem with .htaccess on Ubuntu 10.04

Yesterday I installed LAMP on my Ubuntu 10.04. At first everything seemed fine, but, when I launched my PHP app (I copied it from Windows 7, where I use XAMPP) it didn't accept my .htaccess file. So ...
2
votes
1answer
158 views

Problem with custom 404 page

Don't know if this question is appropriate here. I created an Alias directed to the root folder of the website (right now running on localhost). In the root folder, I have a custom 404 page, and ...
0
votes
1answer
151 views

Apache2 not reading mod_rewrite rules

I have my apache server set up to read from settings. Everything works except mod_rewrite eg. <VirtualHost *> ServerAdmin ServerName ServerAlias www. ...