开发者

Using self hosted Wordpress with a 301 redirect

开发者 https://www.devze.com 2023-02-08 00:41 出处:网络
Recently I\'ve been working to develop a multi-user Wordpress site with Wordpress 3.0 however at the moment we are iso.g one server to showcase preview static content in a subdirectory while multi WP开

Recently I've been working to develop a multi-user Wordpress site with Wordpress 3.0 however at the moment we are iso.g one server to showcase preview static content in a subdirectory while multi WP开发者_运维百科 is in the root directory.

My question however is how to keep the root directory hidden from the publc. Curntly I have a PHP index file handling he redirect howevwer as WP has its own index file I waned to ask about any possible alternatives.

Thanks very much for any assistance,


You're probably going to want to do it with an .htaccess file. However, Wordpress has one of those too, so rename the current .htaccess file to .htaccess.orig (or whatever you want... but don't delete it) and then create your new .htaccess file with your 301 redirect.

Then whenever you are done, just rename everything back to the way it was.

0

精彩评论

暂无评论...
验证码 换一张
取 消