html - HTCaccess rediect repeating the subfolder -


i trying redirect main page blog. using htcaccess code this

redirect / http://coolefitness.com/blog 

the result http://coolefitness.com/blogblogbloglblogblog

no idea why repeating blog. haven't told that. don't know how make loop happen.

here full htcaccess

directoryindex index.php redirect /index.html http://coolefitness.com/index.php redirect /members.html http://coolefitness.com/members.php redirect /what-is-coolefitness.html http://coolefitness.com/what-is-coolefitness.php redirect /instructors.html http://coolefitness.com/instructors.php    rewriteengine on  #unless directory, remove trailing slash rewritecond %{request_filename} !-d #rewriterule ^([^/]+)/$ http://example.com/folder/$1 [r=301,l] rewriterule ^([^/]+)/$ http:/coolefitness.com/blog/$1 [r=301,l]  redirect / http://coolefitness.com/blog  errordocument 403 /404.php errordocument 404 /404.php errordocument 500 /404.php  fallbackresource payment/app.php    # resolve .php file extensionless php urls rewriterule ^([^/.]+)$ $1.php [l] 

i have tried doing rewrite, isn't working. have removed , issue still happens.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -