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]

It looks like you’ve simply copied your index.php script from the WP directory to your v2 directory … without creating another WP installation in v2. WP won’t play nice if you do that.

Regards,

DK

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.