I'm a bit struggling since few days on my rewrite URL.
I have a VPS, which I can access by IP or by some URL names.
When I go through URL names, its ok. Everything is fine, obviously.
When I put the IP of my VPS, it redirect into a dedicated folder var/www/SOA
Thing is: it didn't rewrite the ip into the SOA's legit URL.
Any idea how to change this?
Do I have to edit the
var/www/.htaccess
Or the
var/www/SOA/.htaccess
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.
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 a website on a 1and1 server. I have 2 domains on the package; the default url somenumbers.websitehome.co.uk and my actual URL.
The problem is, Joomla quotes the somoenumbers.websitehome.co.uk in system e-mails instead of my actual URL. They both point to the same directory I just don't want to give a stupid URL to my users.
I think I have narrowed it down to the $siteUrl variable but I'm not sure how to go from here.
Thanks
James
At first I thought this sounded largely like a DNS issue - but then you said you only have 1 Joomla installation and both domains point to that directory.
If they're both pointing to the same directory, then both domains will display the same Joomla installation. That is, unless you're checking to see where they are coming from and having the content display dynamically based upon how they got to your site - but from your comments I doubt you're doing that. How your domains are behaving is the expected response if you're pointing them both to the same directory.
If you want 2 sites on the same hosting? Setup 2 databases (or apply different prefix for each site and use 1 database) and set up each website in it's own directory.
Adjust the DNS of each domain name (and subdomain name) to point the appropriate directory.
From there, use the .htaccess file and SEF URL's to get rid of any indicator of the directory so that it displays the same as if the site was in the root directory.
That is the best way to accomplish what you're after - because from the sounds of it Joomla is doing exactly as it should, displaying correctly what is in the directory since both domain names point to the same directory.
$siteUrl should be left blank.
I am trying to get a demo site for a client setup. This is the 1st application my company is doing in MVC.NET, so I get to experience all the new things to find out (and all the headaches it'll cause).
Anyway, the site works fine locally (localhost) and on the server inside our domain. External users not on the domain however, only get 404 errors. I've tried several different settings/ config options I've found on this site, but nothing is working. I don't know if it's a web.config issue or an IIS issue, or even simply a permissions issue (though it has all the same permissions as the other sites we run with Web Forms).
IIS: v7 in intergrated mode.
Windows Server Web
Well, because you received a 404, the server is being reached okay which is a good sign. (Dealing with firewall issues at a company is always a lot of fun.)
A common problem for something like this is the use of virtual directories to host the website. For example, if the address to your site is http://example.com/MySite/, in MVC that would translate to: /MySite/View/Index.aspx. HOWEVER...if you are using virtual folders, /MySite/ may instead point to another spot on the server (e.g. C:\WebSites\MySite). If you are indeed using virtual paths, make sure you have your files stored at the correct path.
There is a troubleshooting tutorial here: http://support.microsoft.com/kb/248033
thanks for the answers everyone. Turns out it was something with our DNS routing setup with the sub-domains. It was getting rerouted to a place that didn't exist. Our IT guy finally got around to fixing it (ugh!)
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.