opencart multi store 2.x - opencart2.x

I have created multi store in my domain with OpenCart 2.0.3.1.
Domain: meramarket.website
Sub domain for multistore: rsmobiles.meramarket.website
when i created the sub-domain i have created the document root to "rsmobiles". then i am getting the permission access error. if i remove the document root, it is re-directing to main root folder. but, it is not showing the logos what i uploaded for "rsmobiles" and when i click on any category, it is re-directing to actual domain (meramarket.website).
Can you guys please help me to solve this problem.

Related

Secure area / .htaccess

I'm trying to have a secure area / login on our website for staff to access files, mainly company policies so pretty basic.
I've created a folder (outside the public_html) in the main directory, Called 'Staff' with a .htaccess file in it. I can't work out how to link to a .html page in this directory from another page however. Help please?

TYPO3 multidomain

I've got a question about more domains in TYPO3.
I'd like to build a tree which has 2 domains.
If I load the first url, I would like to load the first site,
If I load the second url, I would like to load the second site.
The domains are stored in each site.
Is it possible to do this without using the .htaccess file ?
Does somebody has a tutorial or help for me ?
Thanks
Look at http://wiki.typo3.org/Multidomain
No, you don't need special .htaccess directives.
1) Create page and make it as a root page.
2) Add domain for your root page.
3) Edit domain and give path of your site to domain.
And there is no need to do anything in .htaccess
It's very easy to handle multiple domains using typo3.
3 steps:
Add the site address to DNS.
In typo3 backend, create a "domain record" at the root page of the site "aaa" as aaa.com and another domain record at the root page of the site "bbb" as bbb.com.
Update the domain root page templates with the below typoscript:
config.baseURL = aaa.com # in the first domain's root ts template
config.baseURL = bbb.com # in the second domain's root ts template
Note: You can also add one more domain record in each domain's root page for redirecting to
www.aaa.com and www.bbb.com using the domain record options.
Just point another vhost/alias to this directory. Domain records handles it all.
Don't forget to check realurl config - sometimes there's need to configure it's settings in different way to every domain.
Important - if you share records between domains (eg. tt_news) you have to make identical config for it's postVarSets for each domain. If not, realurl will generate links as ugly hashes.

.htaccess for CodeIgniter

My CodeIgniter structure :
public/
application/
system/
I don't want anyone to access http://exampble.com/public, allow only the application to access the resource. I tries to create the file .htaccess in directory with the content 'Deny from all', so the user can't access this directory. But my application can't access as well.
How can I solve this problem?
Please give me any idea. Thanks.
From its name, it appears that you're using the 'public' directory to store relevant images and css for your site.
If that is the case, then there's no way you can prevent users from accessing it, unless you don't want to serve images or display styling for your website.
You may however enable what's called hot-link protection which will check for the referrer for each request (not very secure, but thought it might help you out).

Question regarding setting up a new website in htdocs folder

Today I moved my website to a new hosting company (Verio). I've done this lots of times before, and I know that your website should go inside the "htdocs" folder.
Now usually when I use FileZilla, I can do a "Right Click" on a filename to get the URL of that file. This is the result of my root default file: ftp://test#test.com/www/htdocs/Research/index.php
However, on the web, the true URL of my default file is: www.test.com/Research/index.php
My index.php file is in the website root folder. Does anyone know why FileZilla would include the server folders "www/htdocs" as part of the URL? These folders should not normally be visible to the user.
OR, is this look correct?
That ftp url is correct. Your FTP account has access to the two folders (www/htdocs/) before the document root, as most hosting providers provide.
You are also correct to assume that http access is limited to the document root. (Meaning they cannot see www/htdocs/)

After migrating Drupal site, saving the admin pages re-directs to old url

I recently migrated a drupal website to a new domain name. The site works fine with one problem . Each time I try to save any data on any of the admin pages , I end up getting redirected to the old url. I have tried a lot to search and find an answer to this problem .. but to no avail. Kindly help .
THanks
presumably you can set the domain in a config file somewhere. Look through the drupal settings.
failing that check for redirects in your Apache/IIS configuration.

Resources