Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I can access G2 from my vHost or subdomain, whats wrong?

G2 subdomain vHost wrong
0
10 Posted

I can access G2 from my vHost or subdomain, whats wrong?

0

Probably you use the G2’s short URLs which are generated by G2’s URL rewrite module. If you have a .htaccess file in your gallery2 directory, this is the case. You have two choices: • Either access G2 only with one of the vHosts / (sub-)domains or • Don’t use the URL rewrite module And if you decide to use the URL rewrite module, you have to activate the module while accessing it from the correct / chosen vHost / (sub-)domain. To change it, access G2 from the URL which you used to install it. Deactivate and uninstall the URL rewrite module. Then access it from the URL that you prefer and install and activate the rewrite module again. Technical background: When using the URL rewrite module, G2 has to store the path to the G2 main.php file in the database and in the .htaccess file. E.g. if the ‘normal’ URL is http://www.example.com/gallery/gallery2 it stores ‘/gallery2’ in the .htaccess file and in the database. If you then want to access it from a vHost that points directly to the galle

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123