My client has a website built using open cart 1.5. He wants me to create a folder inside of it and make a test website using the existing site. I copied everything from the live site and pasted it inside a folder in the live site. Every link in the test website is similar to the links in the live website.
href structure of the live: href="www.site.com/resources"
href stucture of the test site: href="www.site.com/folder_name/resources"
I noticed that when I clicked on a link in the test website, it redirects me to the live website even though I changed the link's href to something like this: href="www.site.com/folder_inside_the_live/resources".
Why does opencart ignore the /folder_inside_the_live/?
I noticed that the live site has no .htaccess and I am afraid to create one as it might affect the live site entirely.
If OpenCart has an installer, you may wish to check for any config/settings files, where it might have set-up the base for links. Reading this OpenCart docs page, it looks like these config files are at /filePathToOpenCart/config.php and /filePathToOpenCart/admin/config.php. Have a look at those, and see if they contain anything that could help. They are most likely just storing database names/passwords, but it is probably a good idea to check it anyway.
Related
We have a dev site www.dev.site.co.za & a live site www.site.co.za.
I wanted the dev site updated to be a current replica of the live site, so our hosting provider copied it over.
But now when if you go to www.dev.site.co.za, you are "redirected" to www.site.co.za. I have tried changing the siteurl in phpmyadmin but that hasn't resolved the issue.
Is there somewhere else the url needs to corrected and is there anything else I need to do to make sure the dev site is a completely separate environment to the live site so I can safely fiddle without damaging the live site?
wordpress not only uses the database in PHPMyAdmin for the url.
As mentioned in the official documentation there are several files that can include the url:
the wp-config.php (wordpress file)
the functions.php (theme file)
Check these and have a look for the url address.
Have a look at the .htaccess file!
Also:
Helpful for that issue (e.g. restoring a wordpress page on another server) is the plugin BackupBuddy. It is one of the most well known plugins for wordpress. (Know right now that it is a paid version! But as always there are others with the functionality).
It allows you to backup and restore your page on a new system. You can initially set your new desired address for the system then.
Maybe it is worth a look!
For rectifying your dev site issue, you can try this.
Following is the URL to a simple utility via which you can replace some value in your database with some desired value.
https://github.com/interconnectit/Search-Replace-DB
Download the utility (zip file).
Upload it to your dev site root location and unzip it there. So that the the URL of the unzipped folder becomes: www.dev.site.co.za/Search-Replace-DB-master/.
Visiting that URL will show you the screen with options to replace some values in your database with desired values.
This utility automatically selected the connected database.
Put the URL of your live site in the field to replace.
Put the URL of your dev site in the field to replace with.
Choose the Dry Run option to see what all tables and columns will be affected.
Once you see the results and know what is changing then you the click on Live Run.
Clicking on Live Run will change all the URL of your live site in dev site database with URL of your dev site.
Once the changes are done you can delete this folder.
Hope this will at least resolve the problem of redirection of dev site to live site.
Once the new site is built you can then migrate(move, copy) it to the live site's location. There are some tools out there to help with moving the site you can use once the site is done. Some require a plugin to be installed to do that though. For example magicmigration can be used to move the completed site to a new location (that one specifically doesn't take extra installs). It is also possible to manually migrate the site though depending on the situation and know-how that can be a bit much for some people.
I'm moving a Typo3 version 4.5 site from one host to another. The hosting environment is very similar and all apache essentials are active.
The Typo backend works with no issues and the front end loads as expected, but, only when connected to the current page directly. Once you start to navigate the site from that page, it's page slug get's added to all links, menu and asset urls.
The htaccess and config files have not been changed from the setup on the previous host and the base url are set automatically, as in, not set explicitly in ay files or in the database.
All caches have been cleared as well as the tempconf folders contents.
The site uses the following extensions concerning URL's:
RealURL Management" 0.3.4
RealURL: speaking paths for TYPO3
Here's an exmaple of what I'm seeing.
Go directly to www.website.com/home
Click on the menu item "about"
I'm taken to www.website.com/home/about
All urls on the page now have "/home/" in them
But if you go directly to www.website.com/about all urls are generated correctly so it's only by clicking through to another page on the site that the incorrect url is generated.
After some time working with this I've not been able to resolve the issue. Any suggestions as to why this might be happening would be greatly appreciated.
Sounds like missing config.baseURL or config.absRefPrefix (preferred one). Did you look into the documentation of RealUrl?
I am new to drupal.I have to work on Live website with drupal 7. This website is working fine. I downloaded the website on my localhost.Home page of the website works fine.But when I click on any link in menu it shows me page not found.When I checked the url it is showing me like this:
http://Locahost/page/category/she.php
But when I check my project page and category folders arenot present.Also when I searched on live website these folder are not there also. But on live server it works fine.Url on live server is like this:
http://mywebsite.com/page/category/she.php
But Page and category folders are not there. I am a new to drupal. Any help to resolve this url generation issue will be appreciated.
After checking for possible misconfogurations as outlined by jpschroeder's you could try using the Backup and Migrate module.
Use the default settings and the cache tables will not be saved in your backup. You don't need them, as they will be re-created on the new server as pages are served for the first time there.
There's a good tutorial on this at http://www.seascapewebdesign.com/blog/how-transfer-your-website-one-server-another
I'm super new with php/wordpress (first day today) and I trying to deploy application on my local machine (Windows 7/ 64bit's if that's matter). SO I get the sources - which is like a theme, deploy wordpress locally with xampp, and put my source folder to wp-content/themes
So now it works, but work's wrong. Some element's like header menu do not render, some text missed. And when I trying to do some navigation like localsite/register it realod the same page, but make page title "page not found", but register.php in the folder. This is work the same for any other pages except login. When hit localsite/login it redirect's me to wp-login.php
I do not need to change it somehow, just make local version looks and works the same as live. Does anyone have an idea why could that be and what should I do to fix it?
Probably your pages do not executes because you do not create it like pages in CMS. That's also the reason why local version could looks different from the server one.
So you need to login to remote server admin panel and replicate all stuff from live server with the same way on your local server. I mean add pages, articles, configure menus, widgets, etc. And then your local version will be look and feel the same.
I am trying to make a clone of a Wordpress site into a subdirectory. So, I will have two installations, one in the root of the domain, and one in /test. My problem is that, even though I have changed the values for siteurl and home uri in database, my links will redirect to root. So, a page like domain.com/test/contact will redirect to domain.com/contact, which is not what I want.
You need to follow these steps to clone your WordPress website from production to staging server -
1. First export database of production server WordPress website and open SQL file in an text editor.
2. Then find your domain name(domain.com) and replace it at all places with your domain name/test like domain.com/test.
3. Import production SQL file to test database from phpmyadmin.
4. Open staging WordPress admin like domain.com/test/wp-admin and go to Settings > Permalink section. Just click on the Save button to update htaccess file.
5. Optionally you can go to setting at admin page and save all general settings, menus and check Widgets area too.
6. Now you can access your domain.com/test WordPress website.
Maybe is because your htaccess settings rewriterules.
Take a look to it or post it here.
Good answer, anil-meena
However these 5 steps can be done automatically with the wordpress plugin
WP Staging. I developed this plugin because the manual process of creating a clone site for testing takes too much time and is too complicated for the regular users.
So i hope it is useful for you.