Need help with server administration?
RSS icon Email icon Home icon
  • mod_alias in .htaccess

    Posted on May 26th, 2009 servbit1 No comments

    Hi,

    I know you’re not allowed to have a alias in .htaccess, but I would like, on my hosting server, to create an alias (I use godaddy). Is there anything I can do about this?

    You can test if mod_rewrite is available

    RewriteEngine on
    # rewrite /alias/foo to /folder/foo
    RewriteRule ^alias/(.*) /folder/$1 [L]

    Leave a reply

    You must be logged in to post a comment.