Page 1 of 1

[Solved] mod_rewrite directory?

Posted: Sun Aug 16, 2009 5:03 pm
by JustinMs66
in my .htaccess:

Code: Select all

RewriteRule ^edit/layout$ edit_layout.php
but it returns a 404, but not because the regex isn't working, its because its looking in the wrong directory and i don't know why:

Code: Select all

The requested URL /home/admin/public_html/edit_layout.php was not found on this server.
but my correct directory is:

Code: Select all

/home/admin/domains/sleekupload.com/public_html/
where can i change this?

*edit*
i also tried, in my httpd.conf:

Code: Select all

ScriptAlias /home/admin/public_html/ /home/admin/domains/sleekupload.com/public_html/
with no success.

*edit*
this worked, putting it in my httpd.conf:

Code: Select all

<IfModule alias_module>
Alias /home/admin/public_html/ /home/admin/domains/sleekupload.com/public_html/
</IfModule>