Local host site redirect to live website in magento 1.8.1? - magento-1.8

Localhost site redirect to live website in magento 1.8.1?
I cleared cache, deleted session and change core_config_data: web/unsecure/base_url and web/secure/base_url still redirect to my live server?

I delete all file in app/etc/module and download new file after working fine.

Related

How to stop all web pages of my site being redirected to homepage

I installed Drupal 7 and developed a basic site for a friend (http://www.misterklean.org.uk)
It was working lovely, then I noticed months later that every single link on the site (including admin links like admin login!) are being redirected to the homepage.
I contacted my hosts who are refusing to help, saying that it's a scripting problem. The htaccess file hasn't changed since I initially uploaded it - and I've tried re-uploading a default htaccess file which I know works on another of my drupal sites (same hosting company)
I've looked at the server error log file and can't see anything since I'd finished developing the site.
I can post the htaccess file here if people think it might help.
you have not enable the clean URL on the server. so you need to disable the Clean URL form Drupal Admin or database.
you can view the pages like below:
http://www.misterklean.org.uk/?q=clients
http://www.misterklean.org.uk/?q=payment-options
http://www.misterklean.org.uk/?q=enquiries

new to .htaccess, how to redirect specific page to mainpage

I'm new to .htaccess file.
My site is hosted on 1and1 and by default it shows www.mydomain.com/defaultsite when nothing is uploaded to my account. Now I've uploaded my wp site and have managed to make it go to index, but if someone inputs in the url www.domain.com/defaultsite he will still get the wrong place.
How can I manage this issue with .htaccess file so that any request to defaultsite will take the user to www.mydomain.com ?
I'm not a 1and1 user, but this could be a DNS cache issue. First, check your document root for the presence of a directory called defaultsite. If it exists, remove it. If not, then you can attempt removing it using mod_rewrite. Insert this rule immediately after RewriteEngine On in your .htaccess file:
RewriteRule ^defaultsite/?$ http://yourdomain.com/ [R=302,L]
If it's working for you, you can safely change 302 to 301 to make in permanent and cache-able.
I have also seen comments referring to an index.html file in the document root. If you see one, delete it - it could be that, internally, 1and1 maps defaultsite to index.html.
Also, it will help for you to clear the cache in your browser when testing. If using Chrome, you can open the Developer Tools (Ctrl+Shift+I), click on the settings cog at the top right of the panel that opens, and check 'Disable cache (while DevTools is open)`.
I had a similar issue and was pulling out my hair trying to figure this out. 1&1 is hosting while Namecheap holds my domain. I was able to access my page without /defaultsite on Safari and mobile Chrome. But on desktop Chrome I was being redirected to /defaultsite.
To remedy this I cleared my cache, flushed my DNS cache, and cleared my browsing history. Not sure if the latter 2 were necessary but having done all three it did help resolve this issue.

How to STOP redirecting my website to mobile.mywebsite.com in smartphones

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

Drupal 6 Admin Links Broken

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.

IIS Permanent Redirects

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.

Resources