1

Topic: To create redirection in a folder level above - Apache, htaccess

On a hosting by default the site is allocated in public_html But I need to rise on level above and to allocate it in the folder <a site name> (which is flush with public_html> I Modify such code: the Code (Text): RewriteEngine on RewriteCond % {HTTP_HOST} ^ (www.)? website.com $ RewriteCond % {REQUEST_URI}! ^/frontend/RewriteCond % {REQUEST_FILENAME}!-f RewriteCond % {REQUEST_FILENAME}!-d RewriteRule ^ (. *) $/frontend / $1 RewriteCond % {HTTP_HOST} ^ (www.)? website.com $ RewriteRule ^ (/)? $ frontend/[L] It does a redirect in enclosed a folder/frontend/, but I need to rise on level above and to make readdressing in a folder <sitename>/frontend (once again: the folder <sitename> is flush with public_html) How many did not modify this code - does not work (changed "/frontend /" on "/./sitename/frontend /"). Such sensation that does not allow to rise on level above.

2

Re: To create redirection in a folder level above - Apache, htaccess

Hello, Submitter, you wrote: S> S> the Code (Text): S> RewriteEngine on S> RewriteCond % {HTTP_HOST} ^ (www.)? website.com $ S> RewriteCond % {REQUEST_URI}! ^/frontend/S> RewriteCond % {REQUEST_FILENAME}!-f S> RewriteCond % {REQUEST_FILENAME}!-d S> RewriteRule ^ (. *) $/frontend / $1 S> RewriteCond % {HTTP_HOST} ^ (www.)? website.com $ S> RewriteRule ^ (/)? $ frontend/[L] S> How many did not modify this code - does not work (changed "/frontend /" on "/./sitename/frontend /"). Such sensation that does not allow to rise on level above. And  at once from the relative? RewriteRule ^ (. *) $ ^/frontend / $1