• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 01:29 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:51 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:08 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:16 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 03:01 AM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:21 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:56 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 01:59 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:25 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:35 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 02:53 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 03:16 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 03:51 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 05:42 PM
8 simple 301 redirects not working - by El Forum - 06-01-2010, 10:53 PM
8 simple 301 redirects not working - by El Forum - 06-02-2010, 07:19 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.