1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wp: Subdomain and Permalink problem

Discussion in 'Blogging' started by gialappas, Mar 23, 2011.

  1. gialappas

    gialappas Regular Member

    Joined:
    Jan 25, 2010
    Messages:
    263
    Likes Received:
    180
    Hi!

    I have installed Wordpress in my domain and works good.


    Now I have installed Wordpress in a subdomain

    (Example: sub.domain.com )

    and I have a problem with Permalink.


    I can't use /%postname%/

    I can use only the default permalink (/?p=123)


    If I use /%postname%/ when I read the article I read the page 404 of my primary Wordpress Blog.

    What I can do to solve it?


    Thanks for you help!!!
     
  2. kijkij

    kijkij Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    254
    Likes Received:
    110
    Occupation:
    Teacher
    Location:
    Pandora
    Home Page:
    Check if your .htaccess file properly configured in sub.domain.com.
     
  3. gialappas

    gialappas Regular Member

    Joined:
    Jan 25, 2010
    Messages:
    263
    Likes Received:
    180

    In sub.domain.com I have a blank .htacces file!

    What should I write?
     
  4. kijkij

    kijkij Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    254
    Likes Received:
    110
    Occupation:
    Teacher
    Location:
    Pandora
    Home Page:
    Copy the content from your main .htaccess into this blank .htaccess file or made your .htaccess file writable before you change your permalink to %postname%. After you configured you blog change back its permissions to default one.

    Or update your .htaccess file with the following content:

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
     
    Last edited: Mar 24, 2011