Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

htaccess problem


Hi im new to the site and to htaccess, and right now im having a problem with my htaccess file, i have a mvc folder structure with no index on the root directory but a htaccess file wich must redirect every time to my public directory, im using xampp, and i want to have several projects there, so whenever i want to access a diferent project i would type http://localhost/xampp/ProjectName/

In my htaccess files i just have this
Code:

RewriteEngine On
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]

but is not working, i keep getting internal server error 500, i don't know whats wrong, can anywone please tell me whats wrong?
View Original Thread
Comments
0
Be the first to comment

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect
avatar
Tags: htaccess, file, wrong
trying to ban IPs using htaccess - not working
Jul 23, 2010
I'm trying to ban certain IPs from visiting my site, so that they instead see a message saying "Your IP has been banned, email me if you think this is an error." I've *almost* got it working -- when people visit URLs like…

loglevel in htaccess with a new override?
Jun 7, 2010
Are there any hurdles to allowing the new LogLevel in htaccess perhaps with a new override to protect it? This would be great for the poor shared hosting rewrite users who could never enable the old rewritelog.

Re: Capistrano deploying everything except .htaccess
Jul 27, 2010
Please see this thread: https://capistrano.lighthouseapp.com/projects/8716/tickets/140-rsync-globbing-causes-hidden-files-to-be-skipped#ticket-140-6 It appears that the rsync command inside lib/capistrano/recipes/deploy/ strategy/remote_cache.rb…

Re: .htaccess deny question
Jun 23, 2010
Post the complete case including the order statement. Also i dont think you need the backslashes. Sent from my phone On Jun 24, 2010 1:38 AM, "Industrial Blue" <industri### @yahoo.com> wrote: I'm having a heck of a time trying to get…

.htaccess deny question
Jun 23, 2010
I'm having a heck of a time trying to get this to work. I have a .htaccess file which is working fine. I now have a requirement to restrict/deny any server ending with the letter 'n' from example.com For example, I want to deny the server…

users@httpd] How to prevent flashgot by .htaccess ?
May 24, 2010
Hello list, Can any one suggest me the signature of flashgot as seen by apache ? I need that to prevent flashgot from .htaccess. I have already tried by tail -f /var/log/apache/access.log but have not found anything which can be used to detect…

still see .htaccess and .htpasswd trough virtual host
Jul 8, 2010
Hello list, I have become little confused and hope to get some help. I have a suse 11.2 server running Apache/2.2.10 (Linux/SUSE) with some virtual hosts. I already have the following in httpd.conf file `````````````` AccessFileName .htaccess …

users@httpd] .htaccess redirect issue
May 27, 2010
Hello list, I am trying to achieve a very particular .htaccess redirect arrangement. I have made it worked but halfway :-( I have written a redirect rule as ````````````````` RewriteCond %{HTTP_HOST} ^testyou.mydomain.com RewriteRule ^(.*)$…

htaccess and httpd.conf precedence (mod_deflate)
Jun 1, 2010
Hi everybody, I'm running a Apache installation using a standard DirectAdmin setup, but I'm having problems with handling of gzipped output. One of my PHP scripts outputs a .ZIP file (with appropriate headers). By default, the output of this…

mod inlcude; htaccess htpasswd SSI do not funtion properly
Jul 26, 2010
See information under this message.