Running local pages on iPhone via IP does not work for all pages - iphone

I have various wordpress sites via MAMP locally on my laptop. I can display one of them on my iPhone. But not the others. And I don't understand why it only works for the one.
I have done this:
Via System Preferences I checked the IP of my WLAN. In the browser (Safari) of the smartphone connected to the same WLAN, I entered the IP address and the port.
The start page, on which all my local Wordpress pages are displayed, is shown on my smartphone.
When I click on the link that leads to the corresponding page, only one page renders.
(This is the link with "Karma").
This is what it looks like when the page opens. (CSS and JS are not loaded, but I know what the problem is).
The problem now is that the other pages won't open. Safari says it can't connect to the server. I notice, that "localhost" instead of the IP adress is displayed in the browser – but I don't know whether this is relevant and I don't know - how to proceed to find the mistake.
All the pages are in subdirectories of htdocs - as usual with MAMP.
I have entered the whole thing both with and without the protocol specification in front of the IP address. (http / https)
Even if I want to access the other pages directly by putting the directory name after the port, it only works for the Karma page).
So:
123.456.789:8888/karma works
123.456.789:8888/gwhh does not work.
Everything seems to be the same. I don't know how to even proceed to find the error. I have tried different networks and browsers.
Thank you.

Related

Redirect Github homepage to custom homepage

I used to host my webpage on username.github.io.
I have now set up a new webpage on username.com, and has no relation to username.github.io.
However, I want to redirect username.github.io to username.com.
As of now, if somebody enters username.github.io, it takes you to the 404 not found page.
Is there anyway I can reroute it to username.com?
Instead of a redirect, the normal process is for your current GitHub pages to use a custom domain
You find a better illustration of that process here
Go to your GitHub Pages site’s repository settings.
Under “Custom domain”, add or remove your custom domain and click “Save”.
Setting “custom domain” creates a file named CNAME in the same repository.
Don’t delete it.
The OP sidv adds in the comments:
After setting up my website (deployed elsewhere) and the DNS servers, I was unable to open the webpage on Safari and Firefox (only on Chrome).
Finding the load balancing IP and configuring it as an A record ended up redirecting the webpage appropriately.

Why does Facebook sharer see my old website

I have a domain name and it had a wordpress cms in it, I re-created the website using another cms (not wordpress). When I try to share the articles or any page, it gives me in the FB sharer badge "page not found", but when clicking on the link .. it opens the page normally as expected.
I tried using Facebook Debug and it still gives me "Bad Response"
When clicking on the button "See exactly what our scraper sees for your URL" in the debugger, it shows me the source of the wordpress page, although I changed the name servers and it is pointing to the correct host.
Any ideas?
and it is pointing to the correct host
For both IPv4 and IPv6?
Facebook gives preference to the latter, so make sure that the records for both point at the new server now, resp. check that you got no old records for IPv6 still pointing to the old server somewhere, should the new one not support IPv6.

Domain Forwarding for specific URLs

I have a domain with GoDaddy called "livingmiracles.org". For years I had this domain forwarding to my livingmiraclescenter.org Joomla website. Recently, I discovered that the way the livingmiracles.org domain now forwards to our livingmiraclescenter.org site has changed and has left me with broken links on almost all of the over 60 websites I manage.
This is what used to happen:
Any URL of the livingmiraclescenter.org website would be able to be displayed with the livingmiracles.org domain instead. For example, the following URLs were interchangeable:
livingmiraclescenter.org/david-hoffmeister.html and
livingmiracles.org/david-hoffmeister.html
livingmiraclescenter.org/contact.html and
livingmiracles.org/contact.html
livingmiraclescenter.org/spiri-tv.html and
livingmiracles.org/spiri-tv.html
Also, variations of the above without ".html" would work.
Now, none of this works anymore. For the "livingmiracles.org/" links above, now, either the livingmiraclescenter.org home page pulls up or I get a GoDaddy error page.
I called GoDaddy and they confirmed a change in the way they handle domain forwarding now.
Can anyone suggest a simple/smart way—perhaps a RewriteRule or something like that—that I can set up somewhere (where?) to handle those specific page redirects? Basically, I want all my livingmiraclescenter.org links to be interchangeable with livingmiracles.org links like I wrote above in those examples.
Thank you so much!
Jutta

Web Forwarding or CNAME Solution - Which is Correct?

I have recently done some website work for a charity. The site I have built has been hosted on my own domain, in a directory. The site's address is www.mydomain.com/newsite/
The organisation has purchased their own URL and would like that URL to point to my hosted site such that the user goes to www.Charity.org and is shown the content from www.mydomain.com/newsite/
I've partially achieved what I wanted to do by using a 302 redirect and a frame, which I set up through the control panel for www.Charity.org, however this has the disadvantage of never displaying anything other than www.Charity.org in the address bar.
Essentially I would like to "mask" the mydomain URL with the charity one, so that the folder structure is still visible to the end user. If they go to www.charity.org/events then that's what they should see in their browser, but the content should map to www.mydomain.com/newsite/events
I have explored CNAME and A NAME solutions but neither of these seem to allow me to point to a directory.
Is this even possible?
The solution is A NAME record.
In DNS zone file of charity.org, create A NAME record of www (& #) to point to your server IP (where the website live).
On server, you'll have to set DocumentRoot for www.Charity.org host. DocumentRoot must be the directory in which default webpage (index.htm, index.php etc) live. Done!
Provide your web server details if you need further help about setting DocumentRoot.
This can also be done with CNAME, but it'll require more complex server side configurations. And, I don't recommend to use masked web forwarding because its not SEO friendly and universally compatible.

FBML rendering in IFrame application

My iframe application don't render facebook tags, I tried to change to connect url to localhost/port but it still not working, is anyone have any suggestion?
For clarification I can see some text in my application, I just can't see the facebook tags
(It's happend to my in Facebook Developer Toolkit iframe sample code)
Thanks
----------------------edit---------------------------
I don't sure where to find the callback url, and the connect url because I didn't found them under the facebook application setting configurations- I think the set of the url connect is , this was the original setting, and I found in some forum that I need to change it to localhost/port
Could you elaborate on your settings, particularly for the connect url? You can't put "localhost" into the Facebook settings - their servers don't know who you are when you say that. To them "localhost" means that facebook server. You need to enter your external IP address, and you may also need to open port 80 to let them load your page from there too.
If your application is otherwise working, then you must have put the correct IP in the callback url, otherwise nothing would be working. Whatever the case, the callback url and connect url must be on the same domain.