[Solved] mod_rewrite directory?

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
JustinMs66
Forum Contributor
Posts: 127
Joined: Sun Sep 03, 2006 4:18 pm

[Solved] mod_rewrite directory?

Post 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>
Post Reply