Welcome Guest, Not a member yet? Register   Sign In
8 simple 301 redirects not working
#2

[eluser]skunkbad[/eluser]
Sleep deprivation makes programming impossible! You always think that you just need a few more minutes to figure something out, but you spend hours. Go to sleep, wake up the next day, and you have your answer in minutes!

Yes, it can be done:

Code:
# This rewritten url is an example of how to redirect any request for a url with query string to the non query string equivalent #
RewriteCond %{THE_REQUEST} ^GET\ /test/whatever\.php.*\ HTTP/ [NC]
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^test/whatever.php(.*)$ http://www.yourdomain.com/test/whatever.php? [NC,R=301]


Messages In This Thread
8 simple 301 redirects not working - by El Forum - 06-01-2010, 12:29 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 12:51 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:08 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:16 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:01 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 12:21 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 12:56 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 12:59 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:25 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:35 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:53 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:16 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:51 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 04:42 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 09:53 PM
8 simple 301 redirects not working - by El Forum - 06-02-2010, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB