g1smd - 4:41 pm on Dec 16, 2010 (gmt 0) [edited by: g1smd at 5:18 pm (utc) on Dec 16, 2010]
You want it so that if user requests 126.96.36.199/folder1/<somepage> they are redirected to www.example.com/<somepage> ?
This code will work only if placed in the root .htaccess at 188.8.131.52/.htaccess file.
For use in the server configuration file, you will need a leading slash on the start of the RewriteRule pattern.
If the code is going in the .htaccess file inside folder1, folder1 should not appear in the RewriteRule pattern as it is stripped from the request before mod_rewrite is invoked.
[edited by: g1smd at 5:18 pm (utc) on Dec 16, 2010]