redirect

Apache CGI redirect to absolute URI doesn't work

I have Apache 2.2.13 running in console mode on Windows. I have made an executable that handles requests. In a certain case, when it detects a URL pointing to a directory but has not trailing slash, it tries to redirect to the same URL with the missing slash appended. The exit-code is set to 301. Strangely enough, having this in the resp...

301 redirects with Joomla on IIS

Hello, I'm running Joomla on IIS. I've got about a dozen categories (financial newsletter publishers) that I'm using to organize about 40 articles (financial newsletters). I'm using the joomla built-in SEO so the URL's look like this: http://www.global-autotrading.com/autotraded-newsletters/13-angel-publishing/43-options-trading-pit.ht...

http redirect: 301 vs. 302 (temporary vs. permanent)

Is the client supposed to behave differently? How? ...

http request ... cookies

A site A (say url : www.a.com) is composed of different editions : each day a new edition. However, the site is not restful: the site is using cookies (I think) to save the edition the user wants onto access. So to access an article of a given edition, we have to first submit a form to specify the edition, and then get the articles of ...

Show no_picture.png by .htaccess if picture is not exist.

Hi, I want to show no_picture.png if requested picture does not exists. I should do it with .htaccess. Thanks a lot. ...

Does 301 redirect always preserve referrer?

I want to know whether 301 redirect always preserve referrer. I make a page called "gotoorig_https.html" which contains a hyperlink to a page "orig_https.asp". "orig_https.asp" will 301 redirect to "dest.html" which shows the document.referrer. In this case, http page(gotoorig_https.html) -> orig_https.asp(301 redirect)-> https page...

how to append url code from database to domain name and redirect with php?

i am on half of url shortening system i get the url from user then create code in mysql for that.Then i have to append coming code to my domain name(now i am working on localhost) like http://localhost/a5c3 then redirect it to real domain.I stuck in here.Code snippet would be good for me at least to understand what i am going to do or yo...

transferring to a revised website; how not to experience a drop in seo; use of file paths

i am creating a revised website for a firm that has an existing website. Many of the pages are the same topic and text with a new design. Should i use the same file paths as the prior site to avoid any drop in google or other search engine rankings ...

Redirects in Glassfish (adding trailing slash)

Is it possible to add a trailing slash to the default context of an application? Example: http://www.uri.com/foo -> http://www.uri.com/foo/ I added the following redirect to the server properties: redirect_1: from=/foo url-prefix=/foo/ and this ends up in a loop... Several other configurations also didn't work :-/ I'm using glass...

IIS 6 www redirect to non www

We have a Dot net nuke site setup to run on a domain, we would like all http://www.site.com to redirect to just http://site.com. I can find lots of info for IIS 7 but very little and certainly nothing that has worked for IIS 6. ...

Amazon S3 Redirect on Access Denied

Is there some way to redirect a user that reaches gets the AccessDenied-error on a bucket? Some bucket-config maybe? Are there any sort of redirect features at all for s3/cloudfront? I thought it might be a way to solve the problem with not being able to have zero-keys so that you can show your users something usable if they go to the "...

Maintaining ViewData between RenderAction calls

I'm rendering a common Log-In form using Html.RenderAction, on every page of my site. If the user enters their details into the text-box and clicks 'Submit', it does a POST to a controller that handles the log in. If they make a mistake, such as entering an invalid email address, it will populate the ModelState with an error message an...

Javascript, Can I "redirect" user in onbeforeunload? If cant, how to...

Is it possible to redirect to another page when userclose browser? Attempts: I tried onunload, does not work window.onunload = function redirect(){...} I also tried another method, it does not work as well: window.onbeforeunload = redirect(){...} <body onbeforeunload="return false; redirecty()"> The 3rd method, i want to cancel ...

How to write a php/htaccess script to redirect form variables to another website

Hey here is my problem : i made a flash and i can`t change it no mather what. That flash had a form that was sending data to my subdomain.. i had to remove the subdomain and i got a new website, the problem is this : how do i redirect the form data from the old site to the new one? In the flash i had the form send the data to : subdomain...

Redirect calls to move/copy inside a batch file to own application

I have a complicated batch file (under windows), let's call it BigMess.bat. It makes a lot of actions that I would like to monitor (especially the copy/move actions). I wouldn't like to touch the BigMess.bat. Is it possible to redirect the calls to move/copy to my own application or another batch file? I tried putting a move.bat file b...

htaccess Redirect from subdomain to domain

I'm re-working a site and I'm attempting to move a forum from a subdomain (board.example.com) to the primary domain where the path will be example.com/index.php/forums/ I've set up my htaccess file like so: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteRule ^(.*)$ http://www.example.com/index.php/forums/ [R=301...

Stop resubmitting a page after a post with F5

After submitting a form with post method f5 will resubmit that. What's the best to avoid this without redirecting a page. Idon't like to disturb the user like this. Stackoverflow are immune to f5 but i don't see any redirection after asking a question. ...

Apache mod_rewrite going berserk - redirecting where it shouldn't

I have a script that echoes a meta redirect to a page called account_management.php5, but for some reason it automatically redirects from there to index.php5. My .htaccess file handles a couple of redirects automatically, for example index.html|php5 to the domain root, and that's the only place I can see this problem originating, but I d...

Redirect pages from old to new site - one by one

Hi, I'm trying to redirect pages from several old domains on one new domain on a page-to-page basis, that is: page 1: http://www.example.org/default.asp?id=1 redirects to http://www.example2.org/newpage.html page 2: http://www.example2.org/default.asp?id=2 redirects to http://www.example.org/contact.html ...and so on. Every old page w...

How to change PHP form redirection depending on radio button or drop-down list selected?

Hi! The idea is to be able to perform some search query depending on radio button selected or drop-down choice. I know my PHP code is wrong, that's why I need your help ;-) My testing page is available here (click). HTML code is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-stri...