How do I redirect to apps.facebook.com/example from example.com? - facebook

I bought my domain from domain.com and now I pay $360pa for inmotionhosting VPS. I just bought SSL for my website for another $125 so I could set up example.com as https://example.com as a legitimate Facebook App.
This was my intention. Maybe I was an idiot.
I want visitors to example.com to arrive at apps.facebook.com/example. This is my website. Naked, it's not good enough.
My nameservers from domain.com point to inmotionhosting.com where my files and database are located. You can only visit by going to example.com.
So how do I have my visitors type 'example.com' in their browser and arrive at apps.facebook.com/example when the entirety of my site is inside that app?
It's either easy or impossible. Maybe the https has given me new powers that I'm not aware of. I know I could set up my canvas files on a different website (its going to be cloaked anyway), but I don't think my https will work without the relevant website. I don't want to wait another week or pay another $125.
So,
How do I redirect to apps.facebook.com/example from example.com?

Assuming your VPS is a Linux box:
http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Related

Ionos domain Redirect "example.de/xxx"

I am currently having some struggle with my company-website.
I have many Domains bought on ionos and we used to have a Wordpress website on our domain "example.ch". We also have the domain "example.de" which redirected to the first domain.
Now, I switched the domain from wordpress to webflow last month. Everything seems to be fine,it is now shown the new Website content which was made with webflow.
Also, the "example.de" domain gets redirected to "expamle.ch" - but not the sub-pages.
For example, I would like to redirect "example.de/about-us" to "example.ch/about-us".
I have no Idea how to solve this Problem, does anyone have a Hint for me?

Redirect not working from google search results

I have a domain which I am forwarding. I have updated the DNS successfully and the redirect seems to work, however if the url is accessed via a google search it still goes to the old site and ignores redirect
Can anyone help me understand what might be going on here?
First of all google search database takes some time... even days to update. So if you have changed domain name recently wait for some time/days until google crawls your site again.
For now you may use redirect... for that you should keep your server reachable with old domain. Also adjust/change old server config so that it should accept request and then redirect to the new site.
If google feels end user is being redirected to another site... google.com may think something is fishy and it will stop redirecting.
So in your old site
load the page as expected.
then prompt the end user... Site has been changed/updated, your request is being redirected to the new site. Sorry for inconvenience
After redirect... user will be happy to see site.
Are you sure that your DNS request isn't cached? You should flush your DNS cache:
https://superuser.com/a/547218/129262
After that use a terminal on your PC an ping your domain. Is the returned IP the new or old one?
And finally do a search in Google through an inkognito tab of your browser as your browser caches redirects as well (or delete the browser cache).

How to redirect a root (naked) domain to www - heroku and zerigo

I have a domain example.com and www.example.com. I'm using Heroku and Zerigo for DNS.. Right now I have a forwarding from the root domain to the www.example.com from my Hostgator account but that's not working. I'd prefer to use Zerigo with the redirecting or by using an ALIAS. A lot of the articles I've found talk about ALIAS and ANAMES but I can't find those on Zerigo unless an ALIAS is specified by the letter A.
Does anyone have a solution to pointing naked domains to their www using Zerigo??
I have done this already -
Went to Zerigo dashboard
Clicked Add Snippet
Click Heroku
Add both of those
Change the CNAME to my heroku app name
It seems like this makes it work temporarily only.
Heroku support didn't even give me a great answer at all...
Looks like one short-term solution would be to point an A-record to 174.129.25.170
If you go to http://wwwizer.com/naked-domain-redirect they free-of-charge redirect naked domains to full domains if you point the record to that address. Also, instead of using Zerigo I did this on my domain registrar's website. But using Zerigo should work as well.
Hope this helps anyone who has this trouble in the future. Remember, this isn't the best solution but it does work. If anyone has a better answer please let us know for future reference.
EDIT on April 10, 2014
The best solution is to buy an SSL certificate for your website. With Heroku, you can use their SSL Endpoint add-on which requires you to buy a certificate elsewhere. This isn't the easiest process, but will work 100% of the time.
Happy coding

Block website during maintenance except for testers

I would like to block the access to my website while I make changes to it. But I want some selected people and myself to have access to do tests. I found this method which is good (http://25yearsofprogramming.com/blog/20070704.htm), except for the fact it is based on ip addresses (I don't know the ips of everyone and can't ask).
How can I do the following:
- redirect all urls to a page like maintenance.php
- on that page, there is a form that people can use to enter a code
- if the code is valid, the redirection stops and they have access to the website normally
Thanks
If you dont want to use ip addresses you can setup htaccess with passwords for the your testers and everybody else will be redirected.
This site can help you with that: http://tools.dynamicdrive.com/password/

Google apps - Naked alias redir

I've www.somedomain.com.uy and somedomain.com.uy. Because i use google apps for this domain on my google app panel, i've setup a naked redir from somedomain.com.uy to www.
So, what i currently have is on Domains tabs are:
somedomain.com.uy (primary domain). With the naked redirect set to www.somedomain.com.uy
somdomain.uy. (alias domain)
On my google app panel, i went to Add domain, and added www.somedomain.uy to my app.
As i result of all this, i can access this application from:
somedomain.com.uy
www.somedomain.com.uy
www.somedomain.uy
As i said, im not able to access just using the plain and simple: somedomain.uy: Trying this results on: 404. That’s an error. (the google message).
I can't find a way to fix this and my question is: is there a way to setup a naked domain redirection to an alias domain? Or any other ideas about how can i make it work?
Thanks for reading, and excuse my simple english.