Hi,
Relating to another question I asked regarding setting up Mercurial under VisualSvn server. Currently when you go to the /svn/ url you can see all repos including hg repos. I now want some way to redirects you to the correct url for hg repos Eg
myserver/svn/MecurialRepo => myserver/hg/MercurialRepo
Or the correct hg script is run,...
Is there a way to redirect output of an executing PHP script?
Of course this is trivial when launching the script via the command line. But how is this accomplished after the script is started?
Note: I need to capture the syntax errors and such as well.
...
This is a little tricky so bear with me:
I have a PHP script a.php that is launched from the command line and data is provided to it via STDIN
I have another PHP script b.php
I want to have a.php launch b.php and capture its output.
Also, a.php has to forward the STDIN to b.php
Is there an easy way to do this?
...
Hi, I'm using htaccess rewrite engine to make urls look nice,
from www.mysite.com/index.php?pag=home to www.mysite.com/pag/home
it works fine with this rule
RewriteRule ^pag/([^/]+)$ index.php?pag=$1 [L,QSA,NC]
but when I go to www.mysite.com it redirects me to www.mysite.com/index.php
is there a way to redirect to www.mysite.com/p...
Hello, i want to redirect peaple who goes in my site to other page if they are using a mobile browser with a php o java script. Thanks
...
How do I prevent wget from following redirects?
...
I'm trying to do clean urls by exploding $_SERVER['REQUEST_URI'] and then switching between the results.
However, once a user goes outside index.php, I'm assuming I need to redirect them back to index.php in order to process the URL they want to reach. How can I accomplish this?
So for instance, user goes to www.domain.com/home/joh...
While migrating a site from a classic asp to MVC, I'm having the problem that not all controllers are implemented yet. For those which are not implemented, I'd like to serve the classic asp page (say /product.asp?id=123) while maintaining the nice url /product/123. To accomplish this I implemented a dummy ProductController which returns ...
I am fairly new to MVC but not sure exactly which Redirect... replaces the standard redirect used in WebForms ie the standard Response.Redirect()
For instance, I need to redirect to other pages in a couple of scenarios:
1) WHen the user logs out (Forms signout in Action) I want to redirect to a login page.
2) In a Controller or base C...
I want to identify if a PHP script is being called inside an iframe of a different host.
I could resort to using Javascript for that, but I'd like to find a JS-free solution first.
Right now I'm using this logic:
If $_SERVER['HTTP_HOST'] is not equal to the host name of $_SERVER['HTTP_REFERER']
And $_SERVER['REDIRECT_STATUS'] is de...
Hello, just wondering if I should be using a 'redirector' type page or link directly to the external pages on my site http://www.onedaysalefinder.co.nz/ - currently I use a redirector page to track what links are being clicked on (which simply takes an ID, looks up the URL in the database, and then does a Response.Redirect(URL);
From a...
Hi there,
I have created a new website for a company and I would like all the previous search engine results to be redirected. Since there were quite a few pages and most of them where using an id I would like to use something generic instead of re-routing all the old pages.
My first thought was to do that:
Router::connect('/*', ...
Hi
How can I perform a redirect with Server.Transfer() to the same page that is currently shown. I want to have A cleared form after submit.
Thanks
...
Hi, I have a problem with php header redirect. I already spent hours trying to fix it.
The problem doesn't occur when the bit.ly api is not used in the script, I have no clue why.
<?php
if (strlen($_GET['url']) > 26) {
$shortenedURL = $_GET['url'];
if (isset($_GET['login']) && isset($_GET['apikey'])) {
$s...
Is there any way to make /name.html and /name/ work interoperably in the event of a 404 error?
For example, if the following fails:
http://domain.com/name.html
Then it would attempt:
http://domain.com/name/
And only go to a 404 page if that directory didn't exist? The reverse would be interesting too, going from dir to .html, and then...
I add a rewrite rule to IIS 7 rewrite, I want a user to enter test.com/resource and that to stay in the address bar, but serving test.com/subdir/resource. But what I get instead is a 301 redirect to test.com/subdir/resource
This is my setup:
What is wrong??
...
We have implemented a website with the ability for the user to post his actioncode. This then will be checked by the code and when the user has a price the website will Server.Transfer him to another page. The strange thing here is that the user information will be submitted to the database and the actioncode can't be used again. Here we...
Hey,
I'm using an API which, given a url, redirects to a file on the server. The file names have "_s,_m and _l" appended to the end (small, medium, large). However, since the url's querystring is parsed dynamically, I don't retrieve the actual file name. The image displays correctly, but is it possible to retrieve the filename of the i...
Hello,
I'm on an asp.net page and I want to redirect to another page and then come back to the original page in the same spot to finish executing the original page. I heard that Server.Execute might work. My question is how can I accomplish this or can I accomplish this?
...
Possible Duplicate:
Cannot modify header information - headers already sent, Why its happening
Hi
I am new with php and I was hoping you could help. I hav a function that uses the javascript alert:
Function promptuser($msg)
{
echo "<script type='text/
javascript'>
alert('$msg');
</script>";
}
Now I have saved this f...