Skip to content

Commit

Permalink
Update .htaccess rules to improve URL redirection
Browse files Browse the repository at this point in the history
Added RewriteBase and fixed conditional and rule for /v2 to ensure compatibility with the new directory structure and proper indexing.
  • Loading branch information
ivangonzalezg committed Sep 15, 2024
1 parent 5354cb3 commit 3c82ae1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
</FilesMatch>

RewriteEngine On
RewriteBase /

RewriteRule ^$ /v1/ [L]

RewriteCond %{REQUEST_URI} !^/v2/
RewriteCond %{REQUEST_URI} ^/v2/?$ [NC]
RewriteRule ^v2/?$ /v2/index.html [L]

RewriteRule ^v2/(.*)$ /v2/$1 [L]

RewriteCond %{REQUEST_URI} !^/v1/
Expand Down

0 comments on commit 3c82ae1

Please sign in to comment.