>


A

Installing wordpress 3.7.1 in subdirectory 


Description

Installing wordpress 3.7.1 in subdirectory
I used the .htaccess with php,

Step 1:(htaccess)
---------
errorDocument 404/404.php
---------

Step 2(404.php)
Create 404.php on your main directory
----
$ele=explode('/',dirname(__file__));
if(in_array('wordpress',$ele)){
header("Location: http://www.example.com/wordpress/index.php");
}
else
header("Location: http://www.example.com/index.php");


Note: wordpress(subdirectory)

For info
wordpress is intalled on subdirectory of franceaurevoir.com

http://www.franceaurevoir.com/stop-anarques
but www.franceaurevoir.com is not wordpress.

I hope it will be helpful!

Share

comentarios