.htaccess - Simple redirect apache infinite loop -


I'm using xampp under Windows 7. I've kept .htaccess in% XAMPP_ROOT% / htdocs. .htaccess has a falling line in:

  redirect   

after typing http: I have an infinte loop error in a // local host browser address field. A http: //localhost/test.php/test.php/test.php/test.php/test.php/test Is on. Php / test.php test.php test.php test.php test.php test.php test.php test.php test.php test.php test.php test.php / Test.php / test.php / . But I hope that I am redirecting to http: //localhost/test.php/ .

Use RedirectMatch to avoid this scenario by using regex Should:

  RedirectMatch ^ /? $ Http: //localhost/test.php/    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -