htaccess Rewrite
-
Hi guys,
I have a website, in this path public_html/TEST
and the .htaccess in this path public_html/.htaccess
This is the htaccess:RewriteOptions inherit # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /TEST/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /TEST/index.php [L] </IfModule> # END WordPress
So, the url of my website is
https://www.mywebsite.com/TESTThe website is live and i need to set up these condition:
1) I need the url is https://www.mywebsite.com (I need to keep the files in the folder TEST )
2) I have to redirect https://www.mywebsite.com/TEST to https://www.mywebsite.com
So i guess for the point 2, i have just to do a redirect 301.Could anyone help me with the point 1 please?
Many thanks
Simone
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘htaccess Rewrite’ is closed to new replies.