Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Here is the scenario:
www.example.com/test_folder
in test_folder I am trying to write a .htaccess file.
The purpose of the file would be redirecting all request to www.example.com/test_folder/any_file_or_no_file to test_folder/public/*
This is what I tried:
C++
RewriteEngine on
RewriteRule /test_folder/.* /test_folder/public/$1


Written rewriterule is not working. Not forwarding as I am expecting.
Little help would be appreciated.
Posted
Updated 2-Jun-14 15:31pm
v4
Comments
Sergey Alexandrovich Kryukov 2-Jun-14 21:04pm    
Not a question. Any particular problem?
—SA
Mohibur Rashid 2-Jun-14 21:30pm    
Uhh, I forgot to add, that this rewrite rule is not working.

It's not clear what kind of help would you expect. Everything is explained here:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html[^],
http://httpd.apache.org/docs/current/mod/mod_rewrite.html[^].

—SA
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900