最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

filesystem - External pages redirecting back to wordpress

programmeradmin0浏览0评论

So I've created a folder under my wordpress root directory containing simple vueJS html files and assets such that anyone can access them from a url like:

Mywordpress/externalfolder

My external folder however contains its own routes and url params so going to a url like Mywordpress/externalfolder/about should be handled in the page logic itself, entirely seperate from wordpress, but instead, wordpress redirects to 404.

How do i remove this behaviour and get the server to use whatever my external folder serves up, and remove wordpress from interfering with anything on the original /externalfolder/ path.

So I've created a folder under my wordpress root directory containing simple vueJS html files and assets such that anyone can access them from a url like:

Mywordpress/externalfolder

My external folder however contains its own routes and url params so going to a url like Mywordpress/externalfolder/about should be handled in the page logic itself, entirely seperate from wordpress, but instead, wordpress redirects to 404.

How do i remove this behaviour and get the server to use whatever my external folder serves up, and remove wordpress from interfering with anything on the original /externalfolder/ path.

Share Improve this question asked Jan 7, 2021 at 23:06 Joshua KingJoshua King 132 bronze badges 1
  • Move external out of the dir for WP. ../external/ and ../wordpress/ – shanebp Commented Jan 8, 2021 at 0:19
Add a comment  | 

1 Answer 1

Reset to default 1

You have 2 options:

1 - Move either WP or your vueJS into a separate folder severd from a new or sub domain,

2 - Adjust the default Wp .htaccess to ignore your externalfolder .

after

RewriteEngine On
RewriteBase /

add

RewriteCond %{REQUEST_URI} !^/externalfolder/
发布评论

评论列表(0)

  1. 暂无评论