The MU forums have moved to WordPress.org

permalink problem after restoring (3 posts)

  1. sur
    Member
    Posted 15 years ago #

    Hi, coulyou help me?
    I´ve tried upgrade mu installation from 2.6.5 to 2.7
    All was wrong. Was my first time.
    After that, I restored the database, I uploaded all the old files again... but now, the permalinks doesn´t work.
    If I use default option (ugly) all works fine again but miss the nice urls

    I think I´ve restored the same htaccess.dist in site root
    But doesn´t work with custom structure:
    /%category%/%year%/%postname%/
    and category base for categories: soluciones
    Nothing base for tags

    The htaccess.dist in root says:
    php_flag register_globals 0
    php_flag display_errors 0

    RewriteEngine On
    RewriteBase BASE/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

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

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    If now all is in the same way when working... What do you think happen?
    Have I broken the old htaccess?

    I read about seo and I think I must use the permalinks but it´s so hard to understand weel them, I´read several times about them and about htaccess too but... I´m un-secure always with permalinks, and it´s possible you click a thing then nothing works in the installation.
    Some times I´ve reinstalled ALL (empty install) because permalinks.
    ¿Could you help me with this problem?
    ¿What is a way to understand and know weel about permalinks-wordpress?
    I´m not programer but I like and try understand what programming is doing.

    Thanks in advanced, the wordpress world is fantastic!

  2. SteveAtty
    Member
    Posted 15 years ago #

    But what is in your .htaccess file? The htaccess.dist file is used to create the .htaccess file and then its not used any more

  3. sur
    Member
    Posted 15 years ago #

    OOOOOOOOOOHHHH! thanks, I´ve uploaded the .htaccess and permalinks works again!
    Thanks very much I´m confused about htaccess.dist and .htaccess (this was hiden untill now)
    In my case are seamless, only change the last line, in .htaccess at he end add:
    AddHandler php4-script .php

    Can I change my permalink custom structure as many times I want without damage?
    If I change the structure, must I manage manually the old post permalinks to the new estructure?

About this Topic