admin管理员组文章数量:1406060
I have a primary domain at www.example. We installed Wordpress at www.example/wp.
When we set up the redirect from www.example to www.example/wp, it works, but we would like to hide the /wp from the URL.
I have tried to edit the .htaccess and remove the original redirect as recommended by Wordpress, but that resulted in a 403 error.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?example$
RewriteCond %{REQUEST_URI} !^/wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wp/$1
RewriteCond %{HTTP_HOST} ^(www.)?example$
RewriteRule ^(/)?$ wp/index.php [L]
</IfModule>
Any help would be much appreciated.
Thanks!
本文标签: Redirecting Primary domain to a Wordpress Installation in the Subdirectory without changing URL
版权声明:本文标题:Redirecting Primary domain to a Wordpress Installation in the Subdirectory without changing URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744965265a2634907.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论