RewriteRule ^([A-Za-z0-9'"%ãõáéíóúâêîôûàÁÃÕÁÉÍÓÚÂÊÎÔÛÀ\/\.\-]*)$ public_html/$1 [NC]

I am by using this Regex up here and delay pills work all right, but when I put for instance:

RewriteRule ^([A-Za-z0-9 _'"%ãõáéíóúâêîôûàÁÃÕÁÉÍÓÚÂÊÎÔÛÀ\/\.\-]*)$ public_html/$1 [NC]

This up here does not work. due to the area and underline, I wish to include spaces and underline within the regexp, however it does not work on all. must i add something into it ?

Which also does not work:

RewriteRule ^(.*)$ public_html/$1 [NC]

I wish to have the ability to type anything and open within the public_html folder.

Ex, I type: www.mysite.com/site_1.php it opens: www.mysite.com/public_html/site_1.php

This .htaccess expression has been examined within the HostGator servers using Apache 2.2.17 i examined during my localhost Apache 2.2.17 too, and same happens.

The Mistake given when adding the _ and space or .* is:

Internal Server Error

The server experienced an interior error or misconfiguration and was not able to accomplish your request.

Please contact the server administrator, admin@localhost and inform them of times the mistake happened, and anything you may have done that could have triggered the mistake.

More details relating to this error might be obtainable in the server error log.

Thank everyone ahead of time.

"the only real special figures or metacharacters in the character class would be the closing bracket (]), the backslash (), the caret (^) and also the hyphen (-). The typical metacharacters are common figures in the character class, and don't need to be steered clear of with a backslash."

http://www.regular-expressions.info/charclass.html

You should not be getting away figures inside the character set apart from those pointed out above. The easy trick here's to make certain you retain the hyphen in the VERY Finish of the character class. This identifies the hyphen like a literal.

RewriteRule ^([a-zA-Z0-9'"%ãõáéíóúâêîôûàÁÃÕÁÉÍÓÚÂÊÎÔÛÀ _/.-]*)$ public_html/$1 [NC]

To prevent a "continuous loop" training regimen this problem before your match rule:

RewriteCond %{ENV:REDIRECT_STATUS} ^$

Also, should you only desire to match everything as if you also spoken about, It's my job to make a move like below. Note, the % can there be to pass through on any GET vars. You are able to remove that if you do not intend to use regular GET vars.

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ /index.php?request=$1&%{QUERY_STRING}

I really hope these details can help you out. GL.