I am trying to move my current site over to a new domain, except for ONE directory.
Example:
current site: oldsite.olddomain.example
new site: newdomain.example
So I know I can create an .htaccess redirect entry to do this, and it works, but I want ONE exception - I do NOT want to redirect a specific directory. I still want thi...
Hi, in my web application I am using secure cookies to remember users.
It works like this:
If the connection is insecure redirect to a HTTPS url.
Over the secure connection transmit the cookies and identify the user.
Redirect to the original (insecure) url.
So every client has to go through two redirects per session. Also the SSL ce...
Hi,
my URL looks like
page.html?L=0&a=1&b=2&c=6 OR
page.html?a=1&b=2&L=0&c=6 OR
page.html?a=1&b=2&c=6&L=0
I need to delete the L=0, where L can be either 0 or 1. But I need to keep all other params. How can this be done?
...
Hi. I have a little problem with redirecting. Registered users follows this link site.com/reg.php?passkey=1234 but the first the user get redirected to the correct language based on a cookie. I need to keep the passkey variable when the user is redirected. like this ?lang=en_US&passkey=1234
My code so far look something like this:
if...
My question is a follow up of Redirecting URLs temporary with htaccess which was solved thanks to the SO community. I realized that I have a 2010 version of my site and a 2011 version which is about to launch. Both share a same structure but content is different and will be archived as such (not a archived category) because it is a fashi...
I am trying to develop a wordpress theme together with someone else. We are basically working from the same svn repository which has the copy of the wordpress files and the database we access somewhere remotely to speed up the devving progress.
Now here comes the problem; as soon as we try to access the wp-admin it redirects us to the ...
I'm having problems with sending redirections to servlet with Unicode-URLs.
i.e. consider the following url in Turkish
http://türkçeisimtescil.com
It works if you paste it into your browser's address bar. However it is translated to
http://xn--trkeisimtescil-ijb74a.com
by your browser upon your request.
Let's say I have fir...
I want to show a custom error page if a user tries to upload a file larger than the maximum request length.
With no code at all, I get a very mysterious "The page cannot be displayed" error when uploading a large file (not the famous yellow ASP error page) -- the same sort of browser error you get when you're offline. This strikes me as...
We are moving from one site language/CMS (coldfusion/custom) to another (PHP/Drupal) and need to have some of our old pages redirected to new ones. I have access to both the .htaccess and httpd.conf (and apache2.conf) as this is a vps on Linode.
Most of them cannot be done via regular expression (they contain GUIDs in the URL) and we're...
I'm working on a site, colorurl.com, and I need users to be able to type in colorurl.com/00ff00 (or some variation of that), and see the correct page. However, with the naked domain issue, users who type in colorurl.com/somepath will instead be redirected to www.colorurl.com/.
Is there a way to detect this in python, and then redirect t...
I am trying to redirect a single URL in a .htaccess file with Redirect:
Redirect 301 /index2.php?option=com_rss&feed=RSS2.0&no_html=1 /something/somethingelse/
I have a bunch of other similar rules which work using directory structure URLs, but this one refuses to get processed.
Redirect 301 /old/url/ /new/url/
Do I have to do anyt...
Edit: I could simplify this question by asking is there a way to do something like header('Location: /msg_form.php?error=3') except sending error=3 and all the other form info via POST. I think the short answer is no, but there are alternative ways to do things.
I integrated a message system into my website which used GET for everythi...
I have a simple python script that just takes in a filename, and spits out a modified version of that file. I would like to redirect stdout (using '>' from the command line) so that I can use my script to overwrite a file with my modifications, e.g. python myScript.py test.txt > test.txt
When I do this, the resulting test.txt does not c...
I have a website at a.com (for example). I also have a couple of other domain names which I am not using for anything: b.com and c.com. They currently forward to a.com. I have noticed that Google is indexing content from my site using b.com/stuff and c.com/stuff, not just a.com/stuff. What is the proper way to tell Google to only index c...
I have a page that is dynamically loaded into another page by an jQuery call. What I want is to make the loaded page accessible only if is called by the jQuery and to redirect if it's accessed directly from the browser address bar.
How do I do that?
Thanks!
...
I created a site in 2 languages english (en) and arabic (ar). Whenever a visitor comes to mysite.com (index) he chooses a language and he will be either directed to ar.mysite.com or en.mysite.com ...the problem and you already know it, don't you? is that he is redirected to mysite.com/en/index.php instead of en.mysite.... and the same st...
Is it possible to track which links redirected to my site? For example if it's a short URL http://alturl.com/6rp7w that redirects to http://www.mysite.com would I be able to track http://alturl.com/6rp7w?
...
I have been trying to find some way of redirecting outbound TCP packets under windows, but so far have not been successful. Does anyone know of any software/code bit that would do something like that?
I am not even sure it is possible with the windows stack.
I am looking at doing something similar to what "-j REDIRECT" is to iptables.
...
I think I can use the .htaccess file for this, but I've looked it up and not found anything useful. What I want to do is have my site redirect to a php page when a user types their username in the URL like:
example.com/username
And have it be the same as a PHP page like:
example.com/name.php?id=username
I'd like it to display as ex...
My website's login uses AJAX to post the credentials. It then checks for an 'error/success' to be returned and then acts accordingly.
This has worked fine up until I wanted to add SSL.
Original code:
if (output == 'success')
window.location=window.location;
Replacement code:
if (output == 'success')
window.location=String(win...