Redirecting URL requests in Apache2

Add the below line 

redirect /test     http://www.mysite.com

to

/etc/apache2/sites-available/default file – if it is applicable for the entire site

(or)

.htaccess file - if it is applicable to the particular application

(In the above case AllowOverride All or AllowOverride redirect should be present in /etc/apache2/sites-available/default file)



No comments:

Post a Comment