Is it possible that I can hide the URL where I redirect in CPANEL.
For example :
My Website : www.abc.com
My other website : www.xyz.com
When redirecting from abc.com to xyz.com I want that the adresse stay abc.com !
How can I make it in CPANEL. ??
The only thing you can do without using IFRAME is that, you will need to update your vhost config file for this for apache:
Following blog post should give you better idea about that:
http://blogs.digitss.com/apache/mod_proxy-mod_vhost_alias-to-host-multiple-domains-on-web-server-and-running-apache-iis-together/
Scroll down to title: How to host multiple domains/sub-domains on a web-server using Apache Virtual-Hosting (mod_vhost_alias)?
But I doubt how would you get to apache config if you are using shared hosting services?
Though I am not sure if you have your own server you can do it easily else talk to hosting support.
Related
I've had an issue with Google Adsense not being able to access their config file (ads.txt) on my Rails site. I have put it in what I think is the correct folder (App -> Public).
In summary, this is the situation for which URLs work vs not:
[webURL].co.uk/ads.txt (works)
https://www.[webURL].co.uk/ads.txt (works)
http://www.[webURL].co.uk/ads.txt (works)
https://[webURL].co.uk/ads.txt (doesn't work - hangs)
http://[webURL].co.uk/ads.txt (doesn't work - error - HTTP Status: 404 (not found)
So my guess is that Google is trying to reach ads.txt via a URL without a www (the two bottom of the list above).
A couple of other points:
My Rails app is hosted on Heroku and I have a GoDaddy domain
On Godaddy, I have domain forwarding already setup, and so [mysite].com gets forwarded to www.[mysite].com.
So my question - how do I get URLs which don't have 'www' in them, to redirect to the equivalent URL with 'www'?
Any ideas?
Thanks in advance!
I resolved this by setting up Cloudflare and configuring some forwarding rules.
So I have a domain example.com and a subdomain sub.example.com.
I would like to configure my Nginx virtual host to open the root site when a user uses the domain example.com but when a user uses sub.example.com the server should serve example.com/sub. The main problem I'm having is the URL changing. I do not want to simply redirect, instead, the URL should stay the same.
So basically you can open the same page by visiting example.com/sub or sub.example.com but the URL should always be sub.example.com.
In your nginx configuration file for sub.example.com, under location /,
You can proxy-pass to the page you want to show. In this case example.com/sub.
But if you have more links on example.com/sub page, your routing would need some tweaks. Else, it should work fine.
I am bulding a website with zend framework 2 and a URL typically looks like this:
domain.com/public/routename/action/params
In the skeleton application i don't have index.php by default, so i created one what basically includes the index.php from the public folder.(This is absolutely not the correct solution). What works but slows down the whole website, also the redirect plugin still redirects to domain.com/public/routename/action/params insetad of domain.com/routename/action/params
How could i skip the "public" in the URLs and get the redirect plugin to work?
Either you can do this from webserver from where you can point the public folder index.php so either point the domain to zf2 you should point to zf2/public/index.php
Another way is you can use htaccess and remove the public url
You should configure your web server so that it serves from public instead of the ZF2 root folder.
Not sure if you use IIS or apache or NGiNX, so without those details it is hard to say what you need to do exactly. But it should be easy to find a 'how to' for your particular web server.
It comes down to configuring what folder should be server for that particular virtual host.
Google can help you
i have installed a laravel application onto my hosted solution . now every time i access the site laravel is removing the www from the URI . Example www.example.com becomes example.com. i need the www to stay. please help if you can. thanks.
i have found the following.
here is the url - http://www.example.com/portal?reseller_id=1.
with this URL the www gets removed. but with the following URL it doe not .
http://www.example.com/portal/?reseller_id=1
any ideas?
Are you sure that's Laravel? The core/base Laravel code doesn't do any examining of the hostname, and should serve up the application for both the www and non-www versions of the domain. It sounds more like you have an .htaccess rule setup, or possibly your webhost has a server level configuration, that's removing the www. I'd test it out with a simple helloworld.php file before spending too much time debugging the framework.
I have some websites to redirect to another URL as they are down for maintenance. It is tiresome doing it manually on IIS. I wanted to know if there is a specific command line or script that i can use to get the work done quicker. I have IIS 6 and windows server 2003. Thanks in advance for your help.
If you have an ASP.NET web application site, and you place a text file named "app_offline.htm" in the root of the site, all requests to that website will redirect to that app_offline.htm file. See this blog post for details.