redirect

.htaccess force ssl when not www

I have a site which uses ssl when accessing a subdomain which essentially is hosting the actual app, whereas the front end site is present at www, which I don't want to use ssl. So this would allow: http://www.domain.com but if somebody types: http://secure.domain.com they get forced to: https://secure.domain.com which when usin...

Drupal 6 CCK node form redirect issue

Hi, I am having trouble with a multi-step node form for a CCK content type. I set $form_state['redirect'] to a thank you page path, but it does not get redirected upon successful submission. Here is the code following documentation on the Drupal 5.x to 6.x form API at http://drupal.org/node/144132 function rnf_form_alter(&$form, &$form...

.htaccess redirect https to http not working

I am trying to catch any https traffic to the front of my site so: https://www.domain.com is redirected to: http://www.domain.com However other subdomains need to be redirected elsewhere. For the most part this is all working, apart from the https -> http redirection. Here's my .htaccess file at the moment: RewriteEngine On Rewri...

Does http-equiv="refresh" keep referrer info and metadata?

Hey guys, I'm posting this here because the Doctype community seems to be sleeping in. If I set up a page like this: <html><head><meta http-equiv="refresh" content="0;url=http://internic.net/"&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt; Will the browser send referrer info and other metadata when the redirection is performe...

Redirect page without losing SEO

I want to change address of my online page but want to make sure that I won't lose any SEO thing. e.g. want to move a page from http://example.com/1.aspx to http://example2.com/a.aspx Is it possible to do this? If yes, then how? If no, what best could be done here if I have to move page and there is no way to stop this. ...

Remove value from GET dictionary and redirect to new URL

I want to have a view in my app that allows the user to remove one of many filters from the GET list, then redirect using the remaining variables in the list. How can I achieve this? Possibly having one filter-remove view that works for all the variables the user can set in the filter. ...

URLs with query stripped of ampersands appearing in error logs

I've noticed a curious phenomena popping up in my error logs recently. If, as the result of processing a form, I redirect my users to the URL http://www.example.com/index.php?foo=bar&amp;bar=baz, I will see the following two URLs in my log http://www.example.com/index.php?foo=barbar=baz http://www.example.com/index.php?foo=bar&amp;bar=...

What is 301 redirect ? and how to do this?

It is ironical that after asking the question:- http://stackoverflow.com/questions/2985377/how-do-url-shortening-services-make-money-closed i am heading over to create another URL shortening service [ despite of the fact that it was closed without any proper answer ]. Till now i was thinking that i will just redirect the request to actua...

question on redirecting in gwt

Hello guys, i am using gwt to create a web application. when a user presses the logout button, i want to be able to refresh the page(or basically redirect to the homepage)as my GWT application runs only on one html page. what is the programmatic code to do this? ...

how can I cache a partial retrieved through link_to_remote in rails?

I use link_to_remote to pull the dynamic contents of a partial onto the page. It's basically a long row from a database of "todo's" for the day. So as the person goes through and checks them off, I want to show the updated list with a line through those that are finished. Currently, I end up needing to click on the link_to_remote agai...

Capture a redirect URL using PHP

I want to use PHP to get the URL of the page to which the following address redirects: http://peacecorpsjournals.com/journal/6731 The script should return the following URL to which the URL above redirects: http://ghanakimsuri.blogspot.com/ ...

IIS: How can I redirect requests for one page to another?

I have written an app to replace a single page and need to redirect the requests for the old page to the new app. In IIS, how would I redirect the request for http://www.mysite.com/foo.aspx to http://www.mysite.com/bar/default.aspx Thanks! ...

How would I redirect requests for one page to another is IIS?

How would I redirect requests to a URL like http://www.mydomain.com/foo.aspx to another URL like http://www.mydomain.com/bar.aspx in IIS. Can this be done in IIS 6.0 or 7.0? ...

Running matlab in the background

Hi, I am running matlab on 48 virtual machines and would like to automate it. I ssh into the machines then use matlab -r matlab_command > outfile.txt & to get the process to run in the background and run fine when I logout. The only problem is that when i jobs my process is stopped and won't start until I fg ^z bg. Is there a matlab f...

Full page reload on Post/Redirect/Get ignoring cache control

I have a page that loads a lot of images, css and javascript. I've added a far future Expires header and set Cache-Control to public on these external dependencies so they should be cached. But every time I do a Post/Redirect/Get chrome tries to load these again. This behavior is very similar to reloading the page. I've added ETags and h...

Header redirect not working in PHP

This line isn't working for me: header("location:landing.php?id=md5($_REQUEST['user'])"); I need to pass the id variable. How do I do this? ...

Check for domain name in redirection

We have a web application on a domain. Now another domain will use this application by doing a 301 redirection to former domain. What are ways to safeguard the app. So that no one can access it directly. Referrer check is one way, but not reliable. ...

Redirect to https login page

I have a site that has a mix of http and https pages. Under the root of the site, one folder has all the http pages and another has all the https pages. Login is over https and sends the user to the other pages. When a session expires the forms authentication redirects to the Login page but the browser uses http and the user gets a 403 e...

htaccess rule redirect non www to www - litespeed server

I have a question about using htaccess in my litespeed server. I tried to redirect http://domain.com to http://www.domain.com using this rule: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule .* http://www.domain.com/ [L,R=301] When I check http://dom...

Something wrong with redirects on my Joomla 1.5.18 site

My Joomla 1.5.18 site, I enabled login, when I click login the page I get sent to is NOT styled with CSS. If I login it redirects to the home page and it is not styled anymore either. It looks like it is recursively appending stuff to the URL incorrectly. http://www.myjoomlasite.org/index.php/index.php/login if I click on home page or...