Hi,
I have the following problem. I have a website and a blog in a subdirectory. Both of them are php. I have a .htaccess file in the root folder and another one in the blog folder. I dont' think is relevant, but the blog script is wordpress.
I added a condition in the root .htaccess to skip the requests made for the blog,
rewriteCon...
Hi,
I have a small python script which invokes an external process using subprocess. I want to redirect stdout and stderr to both a log file and to the terminal.
How can this be done?
Thanks,
Udi
...
I've built a new PHP site for a customer and want to redirect the top ranking Google results from the old site structure to the new one.
I've put several dozen Redirect 301's in a .htaccess in the documentroot, and while some work fine I'm having issues with a bunch of others.
This works fine:
Redirect 301 /nl/flash/banner_new.swf htt...
Hello guys,
I'm trying to figure it out how to set up an .htaccess set of rules that would force the presence of the "www" in front of the domain if it is not initially specified, but at the same time, it will not have any effect if the an subdomain is pressent; all this without hard coding any domain name so that the script is portable...
I have a blog on BlogSpot.com, and I have a domain based on my own name. I want to have a URL on my site (like http://www.mydomain.com/blog) that will then pull in the content from my blog page, but I want the URL in the address bar to stay on http://www.mydomain.com/blog, so that it does not look like you left my site.
(I have a Window...
I’m using the following code to redirect the user if he/she logged in correctly (see comments in code). But I’m getting an error. What am I doing wrong?
<?php
require 'inc/header.php';
require 'inc/config.php';
require 'inc/functions.php';
?>
<?
$login = $_POST['login'];
if($login==1)
{
$username = mysql_escape_string(t...
Hi,
I need to redeirect to another apge from inside webpart but after fully loaded page and siplayin a piece of information to user. Can anybody tell me how to do that, please?
...
Hello,
I'm running a website with 3 domains redirecting to that domain (without a index file, just by admin panel at the provider). Is there a way to SEO these redirecting domains? When I was thinking about this I realized that by redirecting you probably can't upload a .htaccess because you don't have webspace.
I think it's not possib...
I have placed an index.php file in the root of my web site (http://localhost).
I want to redirect this page (http://localhost) to http:/localhost/abc - when I visit http://localhost, I want the user to go to http://localhost/abc.
What do I need to do to my index.php file?
...
Given a URL like:
before: http://feeds.wsjonline.com/~r/wsj/health/feed/~3/felKuQPa41U/
which redirects eventually to:
after: http://blogs.wsj.com/health/2009/08/14/insurance-salesman-to-obama-why-are-you-vilifying-insurers/
Using Coldfusion, how can I obtain that final (after) URL? I believe CFHTTP will redirect automatically up t...
I'm trying to use mod_rewrite to redirect URLs from a URL from an old host to a new one that uses a different URL format. The new host zero-pads the ID to six digits as follows:
Old URL:
http://www.example.com/script.cgi?page_id=123
Needs to redirect to:
http://archive.example.com/000123/
This is what I have so far:
RewriteCond %{...
I am not able to get URL redirection to work. It appears to be a problem with my .htaccess file. I am using WampServer.
Following is the code in .htaccess:
RewriteEngine on
RewriteRule ^contactus index.php?file=c-contactus
...
I have a website "mywebsite.com" and I would like to do a 301 redirect of "http://mywebsite.com" to "http://www.mywebsite.com" (for the usual SEO purposes).
I am running IIS7, however there is an ISA server firewall in front of the site, which seems (as per this article, though his solution did not work for me -- http://mrvirtual.de/200...
Below is the example code I'm using to get this to work and it does work if I try to read yahoo.com.
Here is the problem. The address I need to read is a java servlet that processes parameters passed in, generates a text document on the server, and then redirects to another URL and returns the address of the text file on the server. I...
Hi,
I would like to redirect a URL using RedirectMatch within Apache eg,
/test/one/?? redirect to /test/two/??
where the ?? represents any string that follows
The redirect i'm using below does a straight redirect but doesnt match any string after...
RedirectMatch Permanent ^/test/one?$ /test/two/
Thanks alot
...
I have a apache httpd which distributes the load between 2 servers (Serv_A and Ser_B). Using sticky session.
If the request was sticky with Serv_A and Serv_A goes down.
Question is?
1. should the proxy send the request to Serv_B without doing a redirect from the browser?
OR
2. it should always redirect from the client browser to Serv_...
EDIT:
So my remaining questions are: (1) should I use a 302 or 303 for the header() redirect? I believe 303 is the proper way. (2) Is $_SESSION the best way to pass variables to the ?contact=thankyou page?
My revised code:
if ( isset( $_POST[ 'submit' ] ) )
{
if ( is_bot() )
{
header( "Location: http://www.example.com/contact/...
In a post's answer on superuser.com, we see that
join <(sort abc) <(sort bcd)
will sort files abc and bcd before sending them to join. This leads to a programming question, better suited for stackoverflow.
How does this work? What exactly is this <() construct? What's it called?
If (sort abc) is a legal call that runs sort on abc ...
I'm guessing that using PHP's header("location: here.html") would be much better javascript's window.location("here.html") as far as search engine visibility goes. I would assume that the server redirect would show google the correct content and the javascript redirect would be read as a page with the javascript redirect code in it.
Rea...
I'm trying to write an .htaccess rule to redirect to a script, which further redirects somewhere else. Kind of like how URL shorteners work. However, I don't want the address bar to change during the .htaccess part of the redirect. (It's okay for the script redirect to change the location.)
I'm using mod_rewrite, currently doing this:
...