You are not logged in.

#1 2012-02-11 04:09:41

Abadon125
Member
Registered: 2010-11-07
Posts: 21

Apache Mod_Rewrite in an Alias

Hello,
I have mod_rewrite working just fine for files that are in /srv/http. I copied my test files to another directory where I have an alias pointing and tried them there but was not able to get it working. Is anyone able to spot what I am doing wrong? Here are my configs:

Relevant portions of httpd.conf

Alias /tv "/home/username/a/folder/path"
<Directory "/home/username/a/folder/path">
        Order allow,deny
        Options FollowSymLinks
        Allow from all
        AllowOverride All
</Directory>

Let me know if there are other files that would help.

Edit:
So I have been doing a bit more research. In the end I am trying to get codeigniter installed and running on my.ip.address/tv. I have found this page from code igniter on the topic which says that the mod_rewrite stuff can be done in the http.conf file. Scroll to the very bottom to see what I am talking about.
http://codeigniter.com/wiki/mod_rewrite

So going off of that, here is what I am trying to use. Please let me know which portion I need to change if you can spot any problems.

Alias /tv "/home/username/a/folder/path"
<Directory "/home/username/a/folder/path">
        Order allow,deny
        Options FollowSymLinks
        Allow from all
        AllowOverride All
         RewriteEngine On
                RewriteBase /
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^(.*)$ index.php/$1 [L]
</Directory>

Last edited by Abadon125 (2012-02-11 07:50:45)

Offline

Board footer

Powered by FluxBB