When I change siteurl in wp_options, my local website STILL WORKS. Why? - sql

I'm trying to move a site from Bitnami "localhost" on my computer to a live site online. It's proving very difficult, so I'm trying to understand how this all works.
A very simple question -- the answer to this might offer me some insight:
I've opened the "bitnami_wordpress" database on my computer phpMyAdmin.
I've gone into "wp_options" and changed the siteurl to something other than what it read originally.
It doesn't matter what I've changed it to -- my website on Bitnami localhost should no longer work, right?
Yet the website still works. Why??

Try changing home url in wp_options
If that still doesn't solve the problem, you can find how to migrate wordpress in
http://codex.wordpress.org/Moving_WordPress

I believe the answer to the original question is that the original URL has been cached in the browser. I just ran into the opposite issue: I was still getting a redirect from http://localhost:81/ to http://localhost/ after changing siteurl in SQL table wp_options. Clearing the cache in my browser fixed the issue.

Related

CNAME subdomain.siteA.com to subdomain.siteB.com (on shared server) not working

Ok, i've seen this question posted elsewhere but can't seem to find the correct answer. So like the title says, i've tried to set up a CName entry:
subdomain.siteA.com go to subdomain.siteB.com
It works somewhat. When i ping subdomain.siteA.com, i get the same ipaddress as subdomain.siteB.com. So thats working as expected.
The problem is when you enter the url subdomain.siteA.com in the browser it goes seems to go to the ipaddress, but because its a shared server and there are multiple domains, it doesn't show the correct website. It shows internal error instead. I believe this is because the IP is a shared IP.
So like if i use the ipaddress i could navigate to the correct website by entering something like this: https://192.163.214.xxx/~username/SiteFolder/
or this would work too:
https://subdomain.siteA.com/~username/SiteFolder/
So i'm definitely pointing to the correct server/ip right?
So my question is, how can i make it go to correct site since its a shared ipaddress? is it some sort of dns record i need to add on site b, or a file i need to modify on server, or something i can do whm or cpanel? Or is it just not possible? I feel like there's got to be a way. I have a dedicated server just fyi.
Thank you all ahead of time. I'm no expert for sure, so i truly appreciate everyone's advice.
As you have added a cNAME record "subdomain.siteB.com" for the site "subdomain.siteA.com", it will redirect the requests for the site subdomain.siteA.com to to the site subdomain.siteB.com. In your case,please check if the site http://subdomain.siteB.com is accessible and working properly.

Issue with Cloudflare, can not access page

everybody.
I got an "404 not found" when trying to access the link
http://www.abc.com/api.php/
But the same link without backward slash is OK:
http://www.abc.com/module/mfox/api.php
My server using Cloudflare. And I have disabled this service, but it still happen. I also try with htaccess, but it do not work. Could anyone tell me what's the wrong here, and how to fix this issue?
Thank you.
That would be on your server directly (we don't host your content). The fact that it happens with us off definitely means an issue on your server.

CPanel cache issue

I have made some changes in my site and updated them in the server via CPanel, but I can't see the changes affected.
I have changed one pdf but still old pdf is displaying. Help me if anybody knows why this is happening? Thanks.
Try
dig +trace domain.com
And make sure that domain is pointed to the correct server IP (The one you have made changes)
There is no such things like cPanel cache. Otherwise try
telnet server_IP 25
make sure that its points to the correct server IP.
If the domain points to the correct server where you have made changes, then you need to investigate based on the script or code .check whether the pdf file uploaded correctly
Some its happens to me too but even though we upload it corrected its our browser cache which still shows the old pages and does not reflect the new changes. Most of time i do check it in private browser or via proxy urls :D

Why is my favicon appearing on Amazon S3 endpoint but not on the forwarded domain?

I have tried everything possible and am out of ideas as to why my favicon is still not appearing. If I told you how much time I've spent trying to figure this out you'd understand why i'm on the verge of losing my mind.
Here's the rundown [i'm not technical- just starting to learn so please bear with me]:
I'm using Amazon S3 as my host. GoDaddy is the DNS and I have forwarding with a mask setup so that the amazon endpoint is directed to the actual domain.
Here's the strange thing-- the favicon appears on the amazon endpoint but doesn't on the forwarded domain which is where I want it to appear. The favicon also appears when I do some testing using Dreamweaver.
I can assure you that it isn't a matter a clearing the cache as I've done that numerous times and have ran tests to make sure that it's working. I've tried all the possible different types of variations of code and nothing works. I'm led to believe that it's not an issue with the code, cache, file but rather something else that is out of my realm of knowledge.
So I come to Stackoverflow.
Please-- any help will be GREATLY appreciated!
For anyone having such problem - making the favicon public and using a direct link found in the file's properties on s3 did the charm.
That means use a full URL that is always going to work from everywhere. Depending on how things are set-up a hostname could resolve to something like localhost on multiple machines, so you want to make sure that the host name you're using always has the resource at that location. CORS should have anything to do with it as it is a standard full GET request.

MAMP 2 - Apache. Cannot use folders on desktop

I updated my MAMP to version 2 and ran into a couple of problems. I've always had my projects in a folder /Desktop/Projects and pointed my localhost there. No problem whatsoever, I could see my filelistings etc.
However, after updating, I now get a '403 Forbidden' error, stating that I do not have permission to access '/' on this server.
I'm not sure what I did before to make this work, and I suspect this has something to do with Apache's and/or MAMP's settings? Could someone perhaps give me some pointers? Thanks.
PS: Not sure if this is the right Stackexchange site, but Webmasters didn't have a MAMP tag, so I figured I'd post it here. Thanks a lot.
Guessing you didn't set the Disk Location correctly...
In MAMP, click the HOSTS tab, there you'll see Disk Location.
You can choose the directory here, and click Permissions to make sure things are set correctly.
The path to your web-root should be something like /Users/cabaret/Desktop/Projects