Rewrite in Virtual Host Templates

A

art182

Guest
#1
Hello,
Is there any way to add Rewrite Rules using Virtual Host Templates ?
I know I can add single vhost manually and then Rewrite rules. But I like to use only Virtual Templates and set rules for specified vhost.

Best Regards.
 

lsmichael

Active Member
#2
Howdy Art,

I'm a little confused by this question. Virtual Host templates have a Rewrite tab. Is there something that you'd like to do that you can't do in that tab?

Michael
 
A

art182

Guest
#3
hello,

Yes, there is Rewrite tab in Virtual Hoste Templates.
But how to separate rules for each vhosts?

example :
vhost1/wordpress/ -> some rule
vhost2/wordpress/ -> some other rule
 

lsmichael

Active Member
#4
Howdy,

You could add the virtual host under the vhost template (Member Virtual Hosts) and then instantiate it. That turns it into a standalone vhost and so you can add rewrite rules specific to that virtual host.

Or am I misunderstanding something?

Michael
 
A

art182

Guest
#5
hello,
Oh I did not know about Instantiate option :)

"Please fix error: Virtual Host Root /home/user/site.com/ does not exist."

hmm any advice? vh root is ok.
Need to create conf file manually ?
 
Top