I have a magento site oscommerce, I need it to redirect to httpsa I already have the cert installed I just need to change the htaccess file but i dont know which one the one in the root?
please help
Hey All.
I need to do a mass 301 Redirect for all pages ending with .html for my site. I am looking to move all the old .html files to a sub-folder ir.
RedirectMatch 301 (.*)\.html$ http://www.domain.com/folder/$1.html
When I add this and refresh the browser I get a ton of folder/folder/folder now after the url ie
domain.com/folder//folder/folder/folder.....
Any ideas what could be wrong?
Thanks if you can help
Hello,
We have a series of products with built in web servers each of which has a login page, a customer wants to create a web portal in which they log into once, from there they can simply click on any of the devices (external websites) and it will automatically login to that site and redirect them to the page after the login screen.
The portal is using ASP.NET MVC, the external devices are Windows CE based units running embedded web servers.
Can find a lot on scraping, but not much on redirection after the event.
Many Thanks
Andy
I am returning this from a json result from a controller,
var genericResult = new { redirectUrl = Url.Action("Create", "Registration")
, isRedirect = true };
return Json(genericResult);
but when i inspect through firebug,
{"redirectUrl":"/","isRedirect":true}
if (data.isRedirect) {
window.location.href = json.redirectUrl;
}
Any suggestion.... How to redirect?
I'm doing some web scraping using perl's LWP. I need to process a set of URLs, some of which may redirect (1 or more times).
How can I get ultimate url with all redirects resolved, using HEAD method ?
I am using server.transfer to redirect from one to another page...
lets say when i click on button1 of page1 i redirects to page2 using server.transfer
but than when i refresh that page2 , it get postback and redirects me page1 again..
please tell me where i am doing wrong.?
I have tried with both.. but result is same
server.Transfer("~/admin/mypage.aspx?msg=A",False )
server.Transfer("~/admin/mypage.aspx?msg=A",True )
Hi all,
I'm trying to redirect all URLs that start with "/?page=" to "/stuff/?page="
I have this in my .htaccess file:
RewriteEngine on
RedirectMatch 301 ^/?page=/(.*)$ http://www.mysite.com/stuff/$1
But it's not working.. What am I doing wrong?
I have myown login page.If any user access any page directly(without login),i want to redirect unauthorized user to login page....How it possible.....Using Generic Handler is there any chance? or how can i do it ?
hello...
im trying to redirect "search.php?q=somethinghere" to "search/somethinghere/" but I can't do it! I'm trying to send form "<form action="search/" method="get" name="search">" like this but url goes to "search/?q=somethinghere"
RedirectMatch 301 ^/search.php?q=(.*)$ http://domain.com/search/$1/ this is also not working. whats the problem?
I don't want "?q=" in URL.
Hello, I have a os commerce site with a ssl installed but when you go to it does not redirect you to https://www.microcomputerctr.com
Please help.
I am trying to get my products listed with Google products but it keeps disapproving me
I'm looking for credit card payment gateway similar to Braintree’s Transparent Redirect but working in Europe area. Does anyone know such a gateway?
Edit: Sorry for tagging it with "php" but since I will implement it in php I think it makes sens.
Hello All,
I have a page www.senderdomain.com/sender.aspx, from which i need to write a string to another page in other domain www.receiverdomain.com/receiver.aspx
In sender.aspx i have written
Response.Write("Hello");
Response.Redirect(Request.UrlReferrer.ToString());
It gets redirected to respective receiver.aspx page, but I am not sure how to get the text "Hello" in receiver.aspx page. Can any pl help on this?
I use the delegate method connection:willSendRequest:redirectResponse: in SDK 2.2, the code like below:
- (NSURLRequest *)connection:(NSURLConnection *)con willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse
{
if(redirectResponse) {
if(!self.autoRedirect) {
NSLog(@"response will redirect");
request = nil;
}
}
return request;
if the request is returned to nil ,it seems it hangs up here, and delegate didReceiveData will not get called.
but it works in SDK 3.
Any suggestions about this?
Maybe this is a stupid question.
In php application I used to insert properly htaccess in home directory that redirect from example.com at www.example.com.
But with django how I have to do ?
Hello,
I got problem. I'm builing an app with KohanaPHP framework and I got rediretion endless loop.
Here's the code I put in constructor oh my main controller:
if(empty($this->user->real_name)) {
url::redirect('/');
}
Any ideas how to solve that issue?
Is it possible to do a redirect in the routes file of a Rails app?
Specifically, I'd like to forward /j/e to /javascripts/embed.js
Right now the only way I can think to do it is to create a j controller with an e method that redirects to that.
I am creating a session when a user logs in like so:
$_SESSION['id'] = $id;
How can I specify a timeout on that session of X minutes and then have it perform a function or a page redirect once it has reached X minutes??
Does anyone know how to make rspec follow a redirect (in a controller spec)? (e.g test/unit has follow_redirect!)
I have tried "follow_redirect!" and "follow_redirect" but only get
undefined method `follow_redirect!' for #<Spec::Rails::Example::ControllerExampleGroup::Subclass_1:0xb6df5294>
force https
RewriteCond %{HTTPS} =off [NC]
RewriteCond %{REQUEST_URI} ^/?(bingo/account|bank)(.*)$
RewriteRule ^.*$ https://%{HTTP_HOST}/%1 [R=301,L]
RewriteCond %{HTTPS} =on [NC]
RewriteCond %{REQUEST_URI} !^/?(bingo/account|bank).*$
RewriteRule ^.*$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
it's a nightmare, when i go to /bank i get a redirect loop error or weird redirects, in fact, not the expected behavior, what should i do?
I have a Ruby on Rails app running on 12001. I am currently redirecting a subdomain to 127.0.0.1:12001 using some ReWriteCond detection.
Now I want to redirect my subdirectory to that rails app.
http[s]://domain.com/redmine
to
127.0.0.1:12001
The current rules apply REQUEST_URI to the above rails path, but I need to strip "/redmine" from the front of REQUEST_URI...
Any ideas?
I wish to redirect all page requests if
(1) Current URL doesn't have .php extension
(2) Current Page is not the Site Home (ie www.site.com )
Example:
http://site.com/robin to profile.php?screen_name=robin
Can someone suggests the htaccess to accomplish this?
Hi,
I get in a bash script, in the follwoing line
echo $AAAA" "$DDDD" "$MOL_TAG >> ${OUPUT_RESULTS}
the error:
line 46: ${OUPUT_RESULTS}: ambiguous redirect
Why?
Thanks