1. If I just copy the edited installation files on the sub-directory to the main site, it doesn't work as the files were not installed there.
2. When I try to install the software directly on my primary domain, my other add-on domains go offline because I over-write the default .htaccess file with the one that comes with the Oxwall software which enables it to initiate the installation.
for your ad-on domains please try this rule
RewriteCond %{HTTP_HOST} ^(www\.)?addon_domain\.com
RewriteRule .* - [L]
by this rules your ad-on domain will not be affected (hopefully :D )
now here is 2 option for your existing oxwall
and copy all user and static files from old to new ?
another way .. which i have tried earlier is change every thing in your config.php file .. as Den mentioned ... like path etc
copy everything in your main dir of domain
change fallowing things in ow_include / config.php only and see if it work
define('OW_URL_HOME', 'http://yourdomain.com/oxwall/'); to 'http://yourdomain.com/');
define('OW_DB_HOST', 'localhost');
define('OW_DB_PORT', ****);
define('OW_DB_USER', '******');
define('OW_DB_PASSWORD', '*********');
define('OW_DB_NAME', '*********');
define('OW_DB_PREFIX', 'ow_');
define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);
define('OW_DIR_STATIC', OW_DIR_ROOT.'ow_static'.DS);
define('OW_URL_STATIC', OW_URL_HOME.'ow_static/');
define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');
define('OW_DIR_PLUGINFILES', OW_DIR_ROOT.'ow_pluginfiles/');
please make a back-up of files before preforming any action and let me know if it worked
@Rahul, my oxwall site is the main hosted site. Here is the hierarchy.
My Oxwall site 1 (/public_html/) - <primary domain> works great!
|
|_oxwall site 1 root files
|
|_external site 1 (/public_html/site1.com) - <addon domain> 400 error
|_external site 2 (/public_html/site2.com) - <addon domain> 400 error
|_external Oxwall site 2 (/public_html/oxwallsite2.com) - <addon domain> works great!
|_external site 3 (/public_html/site3.com) - <addon domain> 400 error
Modifying my .htaccess as you suggested here:
Now gives me a 500 internal server error. Do you still suggest changing the ow_include/config.php if my oxwall site is already root?
when i installed oxwall on my primary domain in past time.. my rest of domains stopped working . i used that mod in .htaccess n rest domain started working fine..
i am hosted on justhost
error 400 means = bad request or wrong address
about changing in config.php ... you have to do this if you are relocating your oxwall DIR
as you showing hierarchy it seems you using 3 oxwall install ?
Left Oxwall .htaccess files as original (no change)
Created new .htaccess files in each of my Addon Domains.
Each of those .htaccess files only contain 1 rule:
RewriteCond %{REQUEST_URI} !^/index\.htm
Now all my sites are visible and no more errors.
Please let me know if there are unforeseen issues with that rule.
Each of those .htaccess files only contain 1 rule: RewriteCond %{REQUEST_URI} !^/index\.htmfor your ad-on websites:
add gzip mod to load your website faster
I understand your urgent need for help. It seems like you're facing challenges moving your Oxwall installation from a sub-directory to your primary domain without affecting your add-on domains. Since your hosting provider is unable to assist with third-party applications, one solution could be to reach out to a web developer or an Oxwall community forum for assistance. They can help you create a customized Robotic .htaccess file that allows the software to run on your primary domain while keeping your add-on domains unaffected.
Try adding this
RewriteEngine On RewriteBase / # Exclude specific directories from rewriting RewriteCond %{REQUEST_URI} !^/excluded_directory/ RewriteCond %{REQUEST_URI} !^/another_excluded_directory/ # Rewrite rule for Oxwall RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]