I have a site built on codeigniter but I have come accross a small issue. Basically the homepage can be accessed through 3 different urls, being:
www.domain.com/en
www.domain.com/en/
www.domain.com/en/home.html
I'd like the first and third url to redirect to the second (www.domain.com/en/).
I've been playing around with .htaccess fo...
how to redirect to current directory with rewriterule
How can I redirect to current directory with rewriterule.
example: http://www.mySite/directory/subdirectory/index.php
now program is trying to goto
vvv.mySite/index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
##RewriteRule . /index.php [L]
RewriteR...
We could access all pages of Mediawiki by url ./wiki/Special:Allpages.
But there is not php file that named Special:Allpages. How does mediawiki implement it?
Thanks.
...
Hi,
After form (method POST) submission i want redirect user to specific page.
usually i used simple line
header("Location: /path/to/redirect/");
exit;
The Zend_Controller_Action have method _redirect example:
$this->_redirect("/path/to/redirect/");
But it have one simple problem: if i refresh page (press F5) last controller act...
hi, i need to redirect temporally a domain to a subdomain, this is my code for .htaccess:
Redirect 302 / http://m.domain.com/
this works great, but i have some subdirectories like: http://domain.com/photos, the code above redirects this way: http://m.domain.com/photos
i have a lot of subdirs and sub-subdirs, how i can redirect success...
What would the best practice approach and most desirable HTTP status code be for website / application pages that should not be displayed temporarily?
To outline possible alternatives -
Leave user at the current URL, but
return a different status code and
'maintenance' content? Possibly 503 code? SO question - http://stackoverflow.com...
Hi
I'm having a wordpress site(still offline) which is basically a news paper site. Users has to registered to comment. My problem is that when users login for commenting on any article, they are redirected to profile page (or to home page if i use some plugins)... but the standard should be redirecting them to the referring page as to ...
Hey
I have a bunch of domains on on of my servers. I'd like to be able to redirect some domains to a different domain without the user knowing, so not a 301 redirect.
An example, redirect domain.com to masterdomain.com/sites/domain.com. So when visiting domain.com, the user would be displayed with the data on masterdomain.com/sites/do...
I'm updating my site and therefore i have new links. My old url looks like this:
http://cmstutorials.org/submitted/345
and the new one looks like this:
http://cmstutorials.org/tutorial/view/Quick_Tip_Did_Internet_Explorer_get_the_Box_Model_Right
so when a user visits my old url he will be redirected to a landing page which is going...
Hi Everyone,
I am working on a basic app that has a public facing form (for enquiries) that anyone can fill in and submit. The results are then stored for the company to do what they want with.
I have made sure that if the user is not logged in they can only access the create page, but once they submit the form, as expected, they are t...
Is it possible to control the behaviour of ASP.NET when the Session has expired? It seems that the default behaviour is sending the user to the website root. The desired effect would be to send the user to a custom "Session Expired" page.
To clarify, it's the SessionState that's expiring (set the timeout to 1 minute to quickly test it):...
I just came across some odd behavior in Firefox 3.6/Mac. I suspect that it's general Firefox behavior, though.
I created two dead-simple test pages that change the window.location.href property to navigate to new URL:
http://troy.onespot.com/static/stack_overflow/redirect.html
http://troy.onespot.com/static/stack_overflow/redirect_tim...
Hi everyone How to redirect request from Phase Listener to another servlet on remote machine and get responce back?
...
I have a site set up complete with an index, etc. I would like to redirect only traffic coming directly to www.example.com to www.example.com/foo.php. However, if a user tries to access www.example.com/index.php or any of the other existing pages directly, the request should return the appropriate page as normal. I can't seem to wrap ...
If I had a normal website this would be a simple enough fix... but I've built my site on tumblr so I need a workaround. Every page runs off of the same code, so any solution script is going to run on every page.. can't quite figure this one out (did I mention I'm a total n00b?). There are lots of answers to questions LIKE this one, but...
I need a mod_rewrite rule to redirect url depending on the hostname they are comming from.
The situation:
We have multiple domains pointing to a same webspace and we need to restrict what the specific host can see/download.
domainname.com/images/logo.jpg and /www.domainname.com/images/logo.jpg should transform into domainname.com/doma...
This is quite a lengthy post, so bear with me. I'm not sure whether it is primarily about ASP.NET Session State behaviour, NInject, application design, or refactoring. Read on and then you can decide... :-)
Background
First, a bit of background. We are working on trying to refactor a large webshop into a more maintainable , structu...
I would have thought this would be better documented somewhere, but cannot find much information on the subject.
Basically I'm using htaccess to instill 3 rules on the site i'm working on:
Redirect / rewrite non-www to www
Remove the extensions from each of the site pages - they're php files. Doing this means that the site index becom...
Parts of my site should be server over SSL. I'm only using paths (not full URLs) in links so users stay on SSL when opening links. However, when I use the redirect shortcut function the user is redirected to a non-SSL URL.
Is there any way to specify that the redirect should happen over SSL? It would be best if redirects behaved just li...
the frameworks i've used (granted not that many.. pylons,cakephp,rails,etc) all seem to use a client side redirect when going from 1 controller action to another. wouldn't it be better to save a roundtrip and do the redirect server side?
of the top of my head, i can only think that it's to rewrite the url in the client browser.. is the...