Online Presence Builder
|
.htaccess files
OPB uses a .htaccess file in the public folder to redirect to the wfsites server.
If publishing the site does not create the correct .htaccess file, this can be manually added by FTP.
On Notepad enter the following lines
###### webforce begin ######
DirectoryIndex index.html index.php /hproxy.php
SetEnv PROXYSERVER https://wfsites.websitecreatorprotool.com/
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^hproxy.php
RewriteRule ^(.*)$ /hproxy.php/$1 [L,NC,QSA]
###### webforce end ######
then save as .htaccess
If the website has an SSL certificate, the .htaccess file should be
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://www.[domain.tld]/$1 [R=301,L]
###### webforce begin ######
DirectoryIndex index.html index.php /hproxy.php
SetEnv PROXYSERVER https://wfsites.websitecreatorprotool.com/
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^hproxy.php
RewriteRule ^(.*)$ /hproxy.php/$1 [L,NC,QSA]
###### webforce end ######
Remember to change [domain.tld] to the customer domain
Our Services
|
|