Yii framework, link doesnt redirect to server - yii

I have some problem in Yii Link. My application works fine in localhost but i have move it into server. All the link in server is redirecting to localhost. Can anybody help me out in this situation? Should I have to add something more in configuration file. Thanks in Advance.

Did you use CHtml::link() to create your link? And if you've done it so for the url did you provide an array as follow:
array('Controller/Action', 'param'=>value)
Example:
array('post/list', 'page'=>3)
At the end you'll obtain:
CHtml::link("your text link", array('post/list', 'page'=>3));
(I'm asking it because if you've written every link in hard, it's normal to have each link redirecting to localhost!)

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.

Error after hosting to hostgator

i am trying to deploy my website on this link : http://face-architects.com
but the problem i am facing is this. you can see in above link for my domain at the end of this report for WWW option. It is redirecting to somewhere here:
www.face-architects.com -> ghs.google.com -> ghs.l.google.com -> [ 74.125.206.121 ]
i don't what is this happening with me. i have uploaded many sited in different server. but i haven't faced such kind of problems so far.
http://www.intodns.com/face-architects.com
please provide proper solution.
this website is hosted on hostgator. it gives google's 404 error.
THANKS IN ADVANCE
Please go to Myaccount for your domain from wherever you bought your domain.
Then select manage DNS=> then go to Zone settings and change
WWW which points to ghs.google.com
Replace with
face-architects.com
and You are done.
Please do comments.

Resolving a sub directory to a Heroku app via .htaccess?

I use a Media Temple Grid Service solution for hosting. I currently have a Heroku app which I serve via blog.domain.com using a CNAME record.
I'm trying to have the sub-directory domain.com/blog resolve to the Heroku app instead. I don't want the header to change, so I'm not looking for a redirect I believe.
I've attempted a couple of snippets for .htaccess files which have not worked for me. Can anyone recommend some tips to have this work?
It seems a proxy pass would work from the research I've done, but I can't figure out where or how to set it up given my GS folder structure.
Any help is much appreciated. Thanks in advance.

How can I copy a YII project to another server?

I have got a YII website and I would like to make a copy from it to another domain on nginx server.
I just tried to copy it, but it doesn't working. It looks like it don't use my htaccess?
I know when I make I new project I have to install it. Is there any copy-er for YII?
The probable reason it is not working is because you have to change the location of the entry script in the index.php for the correct location for the yii main folder.
Try doing this :
Try making a new Yii webapp in that location and check that it
works.
Now copy the index.php file from that folder and then put it in your
main webapp.
If the site is still giving errors then check if the database connection is consistent and check that the server has proper write access to the main webapp folder.
Hope this helped.
Regards,
Yii is just made of files and (optionally) a database. Provided you copy both to the new server it will just work. Yii also requires server write permissions on /protected/runtime and /assets.
Make sure you're copying hidden (start with .) files too. You could use git for this and clone it into the new server.
It was something with the server. We use webmin ot that server and I hade to rewrite the config of this domain manually, after that it works great.

BMI 1.1.1.4 URL prefix

From time to time my websites does not show images. When you look at their URL it looks like this:
http://1.1.1.4/bmi/www.domain.com/path/to/image.png
The www.domain.com/path/to/image.png is a valid path.
What is the problem? I use Apache, WSGI and Django.
It looks like the page source is being mangled by Vodafone. This answer may be related:
Stop mobile network proxy from injecting JavaScript
try to send the header
header("Cache-Control: no-transform");
(works with german 1&1 provider)
How can we know what is the problem ?
Your path may be valid but are you sure the images are located in the proper folder ?
By the way, your website doesn't show the whole website or only images ?
Try to locate your images in another folder (for example the same as your webpages) and then give it a try.
Hope this helps.