Forums

[resolved] Site create within wordpress doesnot work " Page cannot be found" (16 posts)

  1. bbhandari
    Member
    Posted 1 year ago #

    Hi There,

    I have sucessfully installed WP 3.0.3 and enabled multisites plugin. I choosed sub-directory to create multisite. WordPress allows me to add new site but when I click on visit and backend option in newly created site it redirects to "page cannot be found" error.

    Word press is hosted on RHEL 6 wich is our development server and .htaccess file has read access.

    Once, I created sub-directory manually inside wordpress root directory and copied all files and directory of word press to it. Then I clicked on visit option of newly created site , it worked. But I dont think this is how it should work.

    Its been already 3 days I am trying to find solution but no luck. I read lots of posts but could not find answer. At the moment I am very fraustrated with myself. I will greatly appreciate if anyone can help in this regard.

    Code that I used in wp-config.php file

    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'wordpress.cdu.edu.au' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    code that i used in .htaccess file

    #BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    #END WordPress

    Looking forward for replies...

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    and enabled multisites plugin.

    the plugin is not the best way to enable the network. In fact, everyone int he past month with this issue has used the plugin.

    Do it manually:

    http://codex.wordpress.org/Create_A_Network
    http://wpebooks.com/2010/09/how-to-enable-multisite-in-wordpress/

  3. bbhandari
    Member
    Posted 1 year ago #

    Thanks Andrea for reply and I am extremely sorry for multiple posting.
    I enabled the network manually and also created sites. I can create site but i cannot visit or access backend , page cannot found error is displayed..

  4. Andrea_r
    team pirate
    Posted 1 year ago #

    Ask your host if they have mod_rewrite enabled. It's a requirement. your .htaccess files uses this to build the URLs for the posts and blogs.

  5. Andrea_r
    team pirate
    Posted 1 year ago #

    define( 'DOMAIN_CURRENT_SITE', 'wordpress.cdu.edu.au' );

    Actually, if that;s the address of your installation, I can't even reach it.

  6. bbhandari
    Member
    Posted 1 year ago #

    I checked mod_rewrite is enabled. Actually, wordpress.cdu.edu.au is hosted in our development server which cannot be reached through internet. Web apps installed in it can only be accessed within intranet. I can access main page of wordpress and I can create pages and network, can create sites but I don't know whay I am not able to visit newly create site and access backend of it.. I too perform claean installation of wordpress many times but no luck..Any help will be highly appreciated.

  7. Andrea_r
    team pirate
    Posted 1 year ago #

    Well, like I said above - it's your server config.

    mod_rewrite can be enabled but not actually reading the htaccess in that folder on the server.

  8. bbhandari
    Member
    Posted 1 year ago #

    Could you please suggest me what can we do to make htaccess readable?

  9. Andrea_r
    team pirate
    Posted 1 year ago #

    AllowOverride FileInfo Options

    in the vhost entry for that web account in httpd.config.

  10. bbhandari
    Member
    Posted 1 year ago #

    Thanks a lot Andrea... Solved...

  11. lameian
    Member
    Posted 1 year ago #

    i got the same problem, however can you explain more for the solution.

    'AllowOverride FileInfo Options

    in the vhost entry for that web account in httpd.config.'

    thanks a lot :)

  12. lameian
    Member
    Posted 1 year ago #

    wp-config:

    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'shop.do-did-done.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    ---------------------

    htaccess.dist

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    ----

    thanks

  13. lameian, you may need to ask your host to do that for you. It's a option you have to turn on.

  14. minpep
    Member
    Posted 1 year ago #

    I have the exact same issue, how would you correct it when the installation is in a local MAMP? Thanks in advance for your help!

  15. Andrea_r
    team pirate
    Posted 1 year ago #

    'AllowOverride FileInfo Options

    in the vhost entry for that web account in httpd.config.'

  16. JTGlass
    Member
    Posted 1 year ago #

    I have the same problem on Windows IIS 6.
    How do I enable mod_rewrite, if that is a solution for windows.

Topic Closed

This topic has been closed to new replies.

About this Topic