0

I want to create an alias to a folder in Apache2(with centos 6 and PHP5.4). My idea is to migrate a project from one server to another.

Example:

htaccess:

SetAlias /home/before.com/ /home/after.com/

PHP

include( '/home/before.com/header.php' );//include header from "/home/after.com/"

Thanks!

hakre
  • 193,403
  • 52
  • 435
  • 836
Olaf Erlandsen
  • 5,817
  • 9
  • 41
  • 73

1 Answers1

1

That's the wrong way to do it. See the docs: http://httpd.apache.org/docs/current/mod/mod_alias.html

You cannot set aliases in .htaccess, either.

Rob W
  • 9,134
  • 1
  • 30
  • 50