Method I have used is as follows :
1, Created a sub domain through hosting server
2, created a mysql database and took details such as user, password and database name
3,went in to phpmyadmin and exported current database from main site and
imported in to new database which i made earlier.
4, copied everything in public through ftp and uploaded to sub domain.
5, changed config file in subdomain folder and the admin folder in subdomain such as the paths and updated user, pass and database names.
now in browser, after typing the address it appears fine but whatever link i click on it reverts back to the main site.
Any ideas??
Thanks in advance.
RewriteBase /subdomain/
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
i'm typing in my browser www.mainsite.com/subdomain (as it appears in the ftp folder) and hops straight back to www.mainsite.com
I have also tried www.mainsite.com/subdomain with an error (to make it wrong to see what happens and if it detects that its not a page thats found which it correctly tells me that its not found)
based on this i assume its enetered correctly but its still hopping for some reason
You confuse me when you say this:sheridangraphics wrote:sorry found it and changed it so i have put the subdomain next to the rewritebase/ on both htaccess files which reside in the subdomain.
i'm typing in my browser http://www.mainsite.com/subdomain (as it appears in the ftp folder) and hops straight back to http://www.mainsite.com
I have also tried http://www.mainsite.com/subdomain with an error (to make it wrong to see what happens and if it detects that its not a page thats found which it correctly tells me that its not found)
based on this i assume its enetered correctly but its still hopping for some reason
sorry found it and changed it so i have put the subdomain next to the rewritebase/ on both htaccess files which reside in the subdomain.
You only modify the 1 .htacess file (the 2nd one that you setup).
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
Just delete .htaccess for now and edit .htaccess.txtsheridangraphics wrote:Thats what i thought but for some reason i have 2 in the sub domain so i changed them both they both look exactly the same. only one is .htaccess and the other is a .htaccess.txt
If you want to use SEO URLs in the near future, rename .htaccess.txt to .htaccess and enable it under the System Settings -->> Edit -->> Server tab.
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
this is how my config files look like:
<?php
// HTTP
define('HTTP_SERVER', 'http://mainsiteurl.co.uk/');
// HTTPS
define('HTTPS_SERVER', 'http://mainsiteurl.co.uk/');
// DIR
define('DIR_APPLICATION', '/home6/shera8/public_html/backmeupv15/catalog/');
define('DIR_SYSTEM', '/home6/shera8/public_html/backmeupv15/system/');
define('DIR_DATABASE', '/home6/shera8/public_html/backmeupv15/system/database/');
define('DIR_LANGUAGE', '/home6/shera8/public_html/backmeupv15/catalog/language/');
define('DIR_TEMPLATE', '/home6/shera8/public_html/backmeupv15/catalog/view/theme/');
define('DIR_CONFIG', '/home6/shera8/public_html/backmeupv15/system/config/');
define('DIR_IMAGE', '/home6/shera8/public_html/backmeupv15/image/');
define('DIR_CACHE', '/home6/shera8/public_html/backmeupv15/system/cache/');
define('DIR_DOWNLOAD', '/home6/shera8/public_html/backmeupv15/download/');
define('DIR_LOGS', '/home6/shera8/public_html/backmeupv15/system/logs/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'database subdomain username');
define('DB_PASSWORD', 'subdomain pass');
define('DB_DATABASE', 'databenameofsubdomain');
define('DB_PREFIX', 'oc_');
?>
Why does your URL point to the main URL and not the subdomain URL?sheridangraphics wrote:Just did that and still hopping to the main domain url.
this is how my config files look like:
<?php
// HTTP
define('HTTP_SERVER', 'http://mainsiteurl.co.uk/');
// HTTPS
define('HTTPS_SERVER', 'http://mainsiteurl.co.uk/');
// DIR
define('DIR_APPLICATION', '/home6/shera8/public_html/backmeupv15/catalog/');
define('DIR_SYSTEM', '/home6/shera8/public_html/backmeupv15/system/');
define('DIR_DATABASE', '/home6/shera8/public_html/backmeupv15/system/database/');
define('DIR_LANGUAGE', '/home6/shera8/public_html/backmeupv15/catalog/language/');
define('DIR_TEMPLATE', '/home6/shera8/public_html/backmeupv15/catalog/view/theme/');
define('DIR_CONFIG', '/home6/shera8/public_html/backmeupv15/system/config/');
define('DIR_IMAGE', '/home6/shera8/public_html/backmeupv15/image/');
define('DIR_CACHE', '/home6/shera8/public_html/backmeupv15/system/cache/');
define('DIR_DOWNLOAD', '/home6/shera8/public_html/backmeupv15/download/');
define('DIR_LOGS', '/home6/shera8/public_html/backmeupv15/system/logs/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'database subdomain username');
define('DB_PASSWORD', 'subdomain pass');
define('DB_DATABASE', 'databenameofsubdomain');
define('DB_PREFIX', 'oc_');
?>
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
The website cannot display the page
HTTP 500
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.
More information More information
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
For more information about HTTP errors, see Help.
I feel pretty certain i've done everything right but just doesnt seem to work.
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
Changed the URL's for both config files on the backup site.
in admin and in the main subdomain folder
so its like this /subdomain/ (on both lines)
on RewriteBase /subdomain-name/ (also tried with and without the space)
anywhere in the htaccess file my main domain name resides, i have replaced with the sub-domain.
from this
Options +FollowSymlinks
i put a # in front like this:
#Options +FollowSymlinks
Could it be anything to do with numbers in the subdomain?
or could there be an seo conflict??
i tried writing both url's like this
http://www.mainsite.co.uk/sub-domain - error 500 comes up.
and this
http://www.mainsite.co.uk/public_html/sub-domain- main site comes up but with a message saying The page you requested cannot be found!
but no difference
I'm hoping that you actually used the sub domain folder that you created instead of 'sub-domain'sheridangraphics wrote:So here's what i've done :
Changed the URL's for both config files on the backup site.
in admin and in the main subdomain folder
so its like this /subdomain/ (on both lines)
on RewriteBase /subdomain-name/ (also tried with and without the space)
anywhere in the htaccess file my main domain name resides, i have replaced with the sub-domain.
from this
Options +FollowSymlinks
i put a # in front like this:
#Options +FollowSymlinks
Could it be anything to do with numbers in the subdomain?
or could there be an seo conflict??
i tried writing both url's like this
http://www.mainsite.co.uk/sub-domain - error 500 comes up.
and this
http://www.mainsite.co.uk/public_html/sub-domain- main site comes up but with a message saying The page you requested cannot be found!
but no difference
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
Would appreciate it.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
Users browsing this forum: No registered users and 158 guests