How exactly I can make duplicate of existing shop on same domain in different subfolder.
Currently is example.com. I want to make duplicate in example.com/test/ for testing purpose. So I've made the folder and copied every file into it.. also I've create new database and export/import database. Then in table shop_url I've change `physical_url to /test/.
So now when I go to example.com/test/ it is loading full site and images but when I click on some product is go into example.com/product_name not in example.com/test/product_name. Also I've change in .htaccess this line RewriteRule . - [E=REWRITEBASE:/test/] from / to /test/.
What else I need to change? What I missing?
Everything is done good
1) Copy files
2) Copy MySQL database with change shop_url and shop_url_ssl (should be the same as shop_url)
3) Refresh .htaccess file to new url manualy or via SEO/URL Prestashop setting - first disable mod_rewrite and Save then enable mod_rewrite and Save - that will create new .htaccess file automaticly.
You should consider to delete cache folder and recreate it from clean install or purge cache/smarty/compile folder.
Change also shop_url_ssl (should be the same as shop_url)
Sometimes You need also clean browser cache memory. Bugs are everywhere :) or try other non used browser to open cloned store.
Related
Im currently trying to move a website to production that has been designed using contao. The website has been developed in a subdirectory of the current website. Now when I change the DocumentRoot to the contao directory the application automatically forwards me to the /development directory which in that situation does not exist anymore.
I did a database dump and searched it for "/development" to find the variable that is storing this information but I didn't find a match. I then did the same with the configuration files but it didn't show up any results too. How is redirecting handeled in contao?
It sounds like your pathconfig.php is wrong. After deploying/moving a Contao installation, you should always execute and log into the Install Tool under contao/install.php. This will correct your pathconfig.php.
Also make sure the RewriteBase in the .htaccess is set to the correct value (probably / in your case).
I have a client who wants to move their hosting provider and we have successfully cloned exact copy of original server to the new hosting provider's server. We want to use different domain name staging.copiedsite.com to creating staging environment to check everything works fine, then we want to flicker it back to original DNS (www.actualsite.com). My question is, how do you configure the site to work with staging domain name? I am going to basically find all database record that says "www.actualsite.com" and replace it with "staging.copiedsite.com". Is that all it needs? Is there any configuration text file that I need to edit? Thanks.
You shall change the domain in BackOffice > Preferences > SEO & URLs. This will update configuration in database and your .htaccess file (For some obscure reason you might have to save this page two times so that the .htaccess file is overwritten).
Also some CMS pages and modules can use absolute URLs so changing all those values by querying the database is a good idea.
Basically that's all you need.
Sorry about my english level.
I researched so much, and i found that can i use ".htaccess" to get redirection to subdomain folder and this is OK.
In Drupal i need to create a folder for each subdomain in "/sites/sub.example.com/" and copy "default.settings.php" from default folder "/sites/default/default.setting.php" and rename it to "settings.php", after that, enable "$databases" variable in the same file, when it's done, i need to add a wildcard and modify "hosts" file.
Well, i should "automate" all this, but i don't know if it's is more hard because it's important hold the server safety with writing permissions or try another way, someone could advise me.
Im working on OSX and Drupal 7.x (recent release)
Thank you very much.
For each site that you want to use separate database, create own sites/ directory with settings.php. For example, if you want to have one database for example.com, another one for sub1.example.com and third one for sub2.example.com, all using same code base, setup your files like this:
sites/example.com/settings.php
sites/sub1.example.com/settings.php
sites/sub2.example.com/settings.php
each settings.php using different database credentials.
Read more here - https://drupal.org/documentation/install/multi-site
Also, if you want to automate this and if there is supposed to be bigger number of sites to be managed, consider deploying aegir - http://www.aegirproject.org.
I hope I understood your question correctly.
I have got a YII website and I would like to make a copy from it to another domain on nginx server.
I just tried to copy it, but it doesn't working. It looks like it don't use my htaccess?
I know when I make I new project I have to install it. Is there any copy-er for YII?
The probable reason it is not working is because you have to change the location of the entry script in the index.php for the correct location for the yii main folder.
Try doing this :
Try making a new Yii webapp in that location and check that it
works.
Now copy the index.php file from that folder and then put it in your
main webapp.
If the site is still giving errors then check if the database connection is consistent and check that the server has proper write access to the main webapp folder.
Hope this helped.
Regards,
Yii is just made of files and (optionally) a database. Provided you copy both to the new server it will just work. Yii also requires server write permissions on /protected/runtime and /assets.
Make sure you're copying hidden (start with .) files too. You could use git for this and clone it into the new server.
It was something with the server. We use webmin ot that server and I hade to rewrite the config of this domain manually, after that it works great.
I am running Magento Community Edition version 1.7.0.2.
I would like to know, how come are there two .htaccess
files in my installation, one in the magento root directory,
and another one in the magento app directory just beneath
the magento root directory?
On my system the first one is 209 lines long whereas the
second one only contains two directives.
Can anyone please explain how come there are two files
instead of one. Are both parsed or just one of them?
Normaly each .htaccess-File paresed, cause they could be used additional.
The last .htaccess-File may overwrite or enhanced previuos ones.
The .htaccess file in app/ is used to "deny" all access to any file under app. Without this someone could access http://yourdomain.com/app/etc/local.xml and see your database credentials, among other bad things. A similar file should be present in var/ as well (to prevent viewing logs, etc)
Delete the existing file and try adding default new .htaccess file
Magento default htaccess file