• Resolved hibha

    (@hibha)


    have installed wordpress multisite locally. i have referred the wp ebook from wpmu tutorials and enabled multisite, after creating the site i get the parent site and able to login. I am able to create additional sites, but i get the error.

    eg: https://localhost/wordpress – this works OK
    eg: https://localhost/wordpress/myname – gives an error as “url not found”

    have tried on 2 different operating systems ( linux-ubuntu and windows 2008 r2
    where am i wrong ?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Do pretty permalinks work on the parent site?

    Thread Starter hibha

    (@hibha)

    no the permalinks are not working

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There we go. You don’t have mod_rewrite setup (so your .htaccess isn’t being read).

    Thread Starter hibha

    (@hibha)

    how do i do tht
    am very new to this

    Thread Starter hibha

    (@hibha)

    my .htaccess

    RewriteEngine On

    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    RewriteBase /wordpress/
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Thread Starter hibha

    (@hibha)

    also not able to open samplepage on localhost/wordpress

    widout pretty permalinks

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    First, when the directions say replace, what they mean is replace.

    RewriteEngine On
    RewriteBase /wordpress/
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    If that isn’t work, and you’re using MAMP or LAMP or something similar, you need to figure out how to turn on mod_rewrite locally.

    Thread Starter hibha

    (@hibha)

    i had put the original text thn read some whr b4 coming here had added those lines
    have removed those lines and pasted the original one

    still i get only main page on my master site, even normal permalink are giving error for sample page

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If that isn’t work, and you’re using MAMP or LAMP or something similar, you need to figure out how to turn on mod_rewrite locally.

    You don’t have mod_rewrite on. This means your .htaccess, which is what magically makes pretty permalinks work, isn’t working at all, and your site won’t work.

    As Ipstenu has stated twice already – at this point it matters little what is in the htaccess file as your server is not even reading it.

    Set up mod_rewrite in Apache.

    Thread Starter hibha

    (@hibha)

    Hey

    I figured out a way to enable mod rewrite on my lamp server
    and viola all working
    thanks for your support

    Thread Starter hibha

    (@hibha)

    i forgot to mark this as solved

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘wordpress multisite not working’ is closed to new replies.