• Resolved notaduck

    (@notaduck)


    Hey. i just reinstalled wordpress on my new server today. i created a new Database and user and imported al my posts in my db. it has always worked for me to do it in that way. i am able to see all my posts and edit them if i am entering them from admin-dashboard->posts->all post
    but i am getting a 404 error when i am trying to open a post from my homepage ?

    it is on techknight.eu i am getting these problems
    the site is running on ubuntu -> lamp stack

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Out of curiosity what is the permalink setting set to?

    Are there any plugins that are active?

    Thread Starter notaduck

    (@notaduck)

    i have a couple of plugins there is active ??

    my permalinks is day and name

    my apache conf if :

    ServerName techknight.eu
    
     ServerAdmin webmaster@localhost
            DocumentRoot /var/www/html/
    
            <Directory />
                    #Options FollowSymLinks
                    Options Indexes FollowSymLinks Includes ExecCGI
                    AllowOverride All
                    Order deny,allow
                Allow from all
    </Directory>
    Thread Starter notaduck

    (@notaduck)

    i tried to deactivate all the plugins but i am still getting the 404 error

    Try resetting your permalinks. That often helps. Just go to permalink settings, change the structure back to default and hit save. Once the page has reloaded, you can switch back to your current structure.

    If this doesn’t work, try repeating this process after deleting your .htaccess file.

    Thread Starter notaduck

    (@notaduck)

    thanks for the quick response !
    it worked when i deleted the .htaccess file ??

    Thread Starter notaduck

    (@notaduck)

    Hmmm but i am not able to change it back to day and name from default? then i am getting the 404 again.

    and i really need it to be day and name as google is linking to that

    Can you post content from .htaccess ?

    Thread Starter notaduck

    (@notaduck)

    this is what it looks like wheni deleted the .htacces and changed permalinks to day and name

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Can you restore it back?

    Thread Starter notaduck

    (@notaduck)

    do you mean to restore it back to permalink – default ?

    yep it work now. i dont have to delete the .htaccess file to change it between day and name – default (but it is still only default there works)

    Thread Starter notaduck

    (@notaduck)

    The problem is solved ! it was just a stupid fail in my apache site conf.
    This is ther orginal :

    ServerName techknight.eu
    
     ServerAdmin webmaster@localhost
            DocumentRoot /var/www/html/
    
            <Directory />
                    #Options FollowSymLinks
                    Options Indexes FollowSymLinks Includes ExecCGI
                    AllowOverride All
                    Order deny,allow
                Allow from all
    </Directory>

    Forgot to tell wich directory pache should use

    ServerName techknight.eu
    
     ServerAdmin webmaster@localhost
            DocumentRoot /var/www/html/
    
            <Directory /var/www/html/>
                    #Options FollowSymLinks
                    Options Indexes FollowSymLinks Includes ExecCGI
                    AllowOverride All
                    Order deny,allow
                Allow from all
    </Directory>

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘404 site not found, all my posts is gone?’ is closed to new replies.