I want to copy my website (Orchard 1.7.2.0) to localhost, to test some things before I do that on the live site.
Ik copied the database and de web directory and configured iis. In the orchards database I changed the base url in the Settings_SiteSettings2PartRecord table. I also changed the database connection in settings.txt
Now when I enter the new base url in the browser I get redirected to the original url. How can I prevent this? I can't find any other reference to the original url.
Thanks in advance for your answer.
I found out what went wrong.
There was a rewrite in the database to the originial url (for removing www in the url). I removed that and now it works.
Related
I've copied & installed the database for a Magento site for a client. I don't have much experience in Magento but I get a strange error condition
When you type in www.example.com it automatically re-writes the URL to www.example.com/sites/example.com/index.php
It also produces a 500 error as well.
Anyone got any clue on how to fix this? Please remember I am a Magento newbie.
EDIT
The problem was down to the server setup :( There was an issue with the "webroot"
go to core_config_data table. There are a couple of fields you need to edit so the urls match your http://localhost/mysite/ but make sure you have the trailing slash on the site path.
base urls
Edit these base urls
These tell the database where to point your links between pages and content.
moving files and database
I assume these two steps are obvious:
copy all of your local files to production server
dump your magento local db and import it into your production server db
editing in production server
now on your production server you need to follow these two steps:
edit app/etc/local.xml file and change database info
in production db,in its core_config_data table, you should find every records containing the url of your local installation, then you need to update those values;which can be found with this query:
SELECT *
FROM `core_config_data`
WHERE `value` LIKE 'http://%';
edit (thanks to comments):
Do not forget to delete var folder contents
I have developed a website www.mywebsite.com and it is ready to go live.
I have used Codeigniter framework.
When I enter www.mywebsite.com from any android/iphone, it redirects automatically to mobile.mywebsite.com and displays page not found error. I dont have any mobile site developed for this. I want to show the main site even on the smartphones.
I am not good at .htaccess file, and I am using default .htaccess to remove the index.php in the url.
I tried creating a subdomain mobile.mywebsite.com and pointed to root path. But same response. I search online, but didnt find anything on how to STOP redirecting.
Thanks in advance.
When I was uploading my local files into the server I was NOT overwriting the old ones assuming the folder is clean and no need to overwrite. But my hosting provider has default .htaccess which is redirecting to the mobile site.
I deleted the old one and gave my .htaccess without the mobile redirection and everything is in place now
I'm trying to to upgrade a site from Drupal 7 which is going to be moved to a new server. I've moved the site to the new server, and am accessing it through the IP address. All the pages and page links work properly when viewing the site, but when I try to access any of the admin links (i.e. /admin or /admin/config), I'm redirected to the live Drupal 6 site on the old server. I've updated the htaccess file, and changed the base_url variable in the settings file. Any other recommendations? Thanks in advance!
When I've seen that before, it's been due to the Secure Pages module. Make sure you have the Secure Base URL and Non-secure Base URL set correctly for the new site.
I have seen a few things written about this and remember one where there was an XML file. So, there is an old URL and a new URL. If the user hits the old URL he is redirected to the new one.
The redirects can be from files that don't exist on the server eg new-jobs.php from Apache server has been moved to an IIS Server and the file is now called new-jobs.aspx.
Does anyone know of such a system or have a better solution?
Check out URLRewrite.
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.