wp_redirect and is_page_template do not work?

I am trying to detect the page of the user and then redirect based on that, just of testing purposes now since i want to verify user role and if they are a certain role they will be redirected out from the page. Anyway the following code is not worki

301 Redirect for a Custom URL

I have a custom made image gallery site that I converted to WordPress, this site have few thousands link like this http://www.example.net/Gallery?cmd=viewCarGallery&carID=13&pgID=1 http://www.example.net/Gallery?cmd=viewCarGallery&carID=9&

I'm having problems with doGet and doPost methods

PersonalInfoOutput.java servlet is using the doPost method. The user logs in at index.html. From index.html, the request is sent to Login.java servlet. From there, the user is directed to the PersonalInfoOutput.java servlet. Now, consider another pag

Rewrite of Problen .htaccess Redirect 301

I need put a redirect on a site and a have some problems. I have this original .htccess RewriteEngine on RewriteCond %{REQUEST_URI} \.json$ [NC] RewriteRule .* - [F,L] RewriteRule config/.* - [F,L] RewriteRule config - [F,L] RewriteCond %{REQUEST_FIL

.htaccess hides url subdirectory after redirection

I'm redirecting a website to a subdirectory I created. The subdirectory contains an installation of WordPress and now I want to mask the subdirectory url from the website. Now it's something like http://mywebsite.com/apt/ I want to remove the /apt/ f

PHP - Moving from Office to Mobile & amp; Mobile to Desktop

I'm trying to make a Desktop to Mobile switch for my website, but I can't really get it to work. This code (got it from internet) works, but it only redirect me to the mobile site... <?php $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/(andr

Google+ Authorship: @REL, GET settings, and redirects

I recently decided to start to take advantage of rich snippets to improve my personal website's content for the search engines and, IMHO most importantly, the site readers – hi, Mam! ;-). One of these are Google Authorship. Personally, I think the id

PHP redirection to the selected page after login

I'm trying to find a way to redirect a user to the page they selected if they have been forced to log in again after a session timeout. Right now, after the user logs in, they are redirected to index.php. But, if a user received a link in an email to

Redirect the domain to the Openshift page

I want to redirect my domain.com to openshift page (openshift-app.rhcloud.com). I've done it as described here and it works. The only problem is that on any site I won't be the address will always be domain.com. For example: openshift-app.rhcloud.com

Attributes in the header () function

Is there a way to send some attributes when redirecting with header() function? I would like to send some error message when redirecting(PHP5). I know that I could just show error page for a 5 seconds or so and then redirect. Or redirect with query i

What are all public / direct entry points for Wordpress?

I realize this is a bit of a strange question, but to put a long story short, we have a few Wordpress installs whose files are loaded through a symbolic link (the symlink is in the document root whereas Wordpress is not). For this to work, I need to

Directory to a subdomain of the same name

Thanks for reading. I have done a search, read multiple posts (lost count) and still having trouble with something that seems simple. I am trying to redirect or rewrite from: http://www.mysite.com/blog/ to http://www.blog.mysite.com/ Firstly, should

.htaccess redirection for dynamic search pages

I need help with dynamic search pages. I need to change: /download.php?q=search to /download.php?mp3=search So only search pages need to change q to mp3. I would appreciate if someone could help. I want to do this through .htaccess Thanks in advanceT

What is the correct use of RedirectPermanent?

I am working on an eCommerce site that passes product ids in the query string. I just had to fix an issue where the product page didn't check the status of the product (live or archived) so if the user had a direct link e.g. a search result, the prod

Question RewriteEngine in .htaccess

I have put this in my htaccess #Redirect all england visitor to this web page , england.php RewriteEngine On RewriteCond %{REMOTE_ADDR} ^222\.167\. [OR] RewriteCond %{REMOTE_ADDR} ^112\.111\. ........ RewriteRule ^(.*)$ http://www.xxx.com/england.php

PHP: If Else comes from Get Form Value, then redirect

So I'm currently stuck on a little idea I'm trying out. Currently I have a 'GET form' with PHP running on my site. What I'd like to do is when the get form is submitted, it'll be pointed to a page where an IF ELSE script will be waiting (No idea if i

Tomcat proxy URL to map a host request to a path

how, if possible, can I redirect a request for a hostname to a specific subdirectory of one of the deployed apps? E.g., I wish to forward http://host.com to http://host.com/app/path It is however possible to redirect to a specific application on tomc