WordPress htaccess after URL redirection
-
Here’s my file structure: public_html/juantvme/v2
- public_html – main folder
- juantvme – i just want to organize it
- v2 – for version 2
I managed to redirect the public_html to the v2 folder via htaccess:
RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?juantv\.me$ [NC] RewriteRule !^juantvme/ /juantvme/v2%{REQUEST_URI} [L,NC]
But inside the v2 folder which has a wordpress in it, it shows a 500 server error. Here’s what I tried to do:
RewriteEngine On RewriteBase /juantvme/v2/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /juantvme/v2/index.php [L]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WordPress htaccess after URL redirection’ is closed to new replies.