Hi All
I would like to redirect the user when he/she clicks on a link () to b.com when the user is in a.com without displaying the change in the browser's address bar.
How would I do this? Please help.
Thanks.
...
I've inherited a bad sitation where at our network we have many (read: many) hosted sites doing this:
include "http://www.example.com/news.php";
Yes, I know that this is bad, insecure, etc, and that it should be echo file_get_contents(...); or something like that (the output of "news.php" is just HTML), but unfortunately this is what t...
Hello!
I'm about to develop widget that will consume a web service built on top of existing functionality and it's requires that that web service should be aware of where the request is coming from.For example a consumer in the registration can provide information about it's blog or it's website that will be using the widget.
Now i need ...
I would like to log all the output of a Python script. I tried:
import sys
log = []
class writer(object):
def write(self, data):
log.append(data)
sys.stdout = writer()
sys.stderr = writer()
Now, if I "print 'something' " it gets logged. But if I make for instance some syntax error, say "print 'something# ", it wont get ...
This is a combination of my two recent questions:
[1] http://stackoverflow.com/questions/1954494/python-instance-method-in-c
[2] http://stackoverflow.com/questions/1956142/how-to-redirect-stderr-in-python
I would like to log the output of both stdout and stderr from a python script.
The thing I want to ask is, to create a new type acco...
website.com/yt/MGEPkLPGB6E
would forward to
youtube.com/watch?v=MGEPkLPGB6E
...
I want to setup a system so that multiple custom domains like [mydomain.com/params] will redirect to [myapp.com/mydomain.com/params]. Can I do this using only DNS settings?
I'm guessing that is not possible, so would it be a better solution to direct mydomain1.com, mydomain2.com, mydomain3.com, etc. to one IP address then use Mod_Rewri...
Weird question but here goes...
I have a webpage and i want to get images from another site. However i would like to prevent users to knowing which site. It doesnt need to be perfect just 'good enough'. Is there a way i can write and have the browser get the image from another domain? If the user right clicks and hits view image i woul...
I'm trying to use whiptail as it's a lightweight alternative to dialog and seems to be installed by default in most systems (i.e., people don't have to go around and install it if it's "forgotten" or wasn't installed by default).
I checked question #1562666 for a few examples here, but I'm looking for an alternative for redirecting outpu...
When I click on my Login link it takes me to the Login.aspx page in the same browser session as expected.
But when I click on a page the user needs to be authenticated to see, it redirects to the login.aspx page in a new browswer tab. Thus it now has two tabs open.
Anybody know how to stop this behavior? I would like the app to switch...
I was wondering if its possible to redirect a user to a web page that required a username and password such as the one you would require for an IIS authenticated web site and automatically send through the UN and PW, eg -
Response.Username = "";
Response.Password = "";
Response.Redirect("url");
...
Hi all.
Let's say I have a server at www.myhost.com. From there by using php I want to retrieve the html document that the php file www.anotherhost.com/somefile.php produces. I also want to use php to do this. anotherhost is not on the same server as myhost.
I know that functions such as fopen, f_get_contents and file can do this by si...
I have a site that serves up a pretty substantial Silverlight RIA and it makes use of IsolatedStorage. The SL app is served up from https://www.site.com/Application (MVC View that hosts the SL object tags, etc). It is also served up from https://site.com/Application. The problem inherent in this is that this will create two separate I...
We have a client that is closing its doors. We want to redirect all traffic that goes to their domain to a new page index.html with a few images in the _img subdirectory. (The page explains what happened, what current customers can expect with their current orders, etc.)
I've read about possibly using HTTP 410 Gone as the best way to te...
I have a website, with a user system. I want to integrate wordpress's user system into that website's, but I still want to use the website's register/login pages. I don't want anybody to be able to login or register using Wordpress's login or registration forms. Instead, when they're try to access the login/registration pages in Wordpres...
ok, so i can't tell if this is a server issue or what. i've got an htaccess file like so:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/main/index/$1 [L]
RewriteRule ^ajax/(.*...
I have a online store that, for example, is located here: hxxp://domain.com/store/
Within the store directory's .htaccess file I have this:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /store/
RewriteCond %{HTTP_HOST} !^www.domain.com$
RewriteRule ^(.*)$ http://www.domain.com/store/$1 [R=301]
RewriteRule ^/?$ directory.php
Rewr...
I'm trying to implement a login system that will be smart enough to redirect a user back to the page they were on before they decided (or were forced to) go to the login page.
I know this seems like a similar question to this one, and this one, but they do not address both of my scenarios.
There are two scenarios here:
User specifica...
Are there any 'best practices' concerning how one should return a user to their original page after logging in to your website, specifically in PHP? e.g. if I'm viewing a StackOverflow question while not logged in, how would you ensure that I return to this question if I logged in?
From my research, it seems a lot of advice centers arou...
Hi All,
I was hoping someone can assist in describing a workaround solution to the following issue I am running into on my ASP.NET website on IE. In the following I will describe the bug and clarify the requirements of the needed solution.
Repro Steps:
User visits A.aspx
A.aspx uses Response.Redirect to bring the user to B.aspx#house...