• Resolved mrkingid

    (@mrkingid)


    Calling all guru’s…

    This might be long so bare with me.

    Site: https://design-studio.com

    I started development of a new site piggy backed off a server hosted on godaddy. the install was to https://www.mysite.com/new-site-dev

    There I placed a fresh install of WP and started my thing. Editing the CSS, adding images and posts, etc.

    The time came to move it to its own domain but I decided not to go with godaddy.

    On the new host (netnation) i created what I needed, same DB name, etc. On the godaddy site I backed up DB, changed URL and Blog address to the new host. Installed a fresh WP and uploaded saved DB. And all was brought over and working. No pages missing, no text missing, all works well. except

    I wanted to change the permalink structure from the default to the second choice avaialable. I do that and ‘boom’, no pages can be accessed.

    Is the end I had to choose /index.php/%postname%/ to get semi pretty permalinks working but I would much prefer to not have the /index.php/ in the address.

    So, anyone know why I can’t use the permalink structure I want too?

    I have read the codex over and over but I cannot get it to work the way I would prefer.

    Mike

    PS. Note that a fresh install and DB build (not migrating) on a netnation account allows for permalink to work the way I want.

Viewing 15 replies - 1 through 15 (of 24 total)
  • I do that and ‘boom’, no pages can be accessed

    What actually happens? “Boom” is interesting sounding but difficult to diagnose.

    Thread Starter mrkingid

    (@mrkingid)

    Boom=

    Access forbidden!

    You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.

    If you think this is a server error, please contact the webmaster.
    Error 403
    design-studio.com
    Tue Jul 15 15:24:41 2008
    Apache/2.0.54 (Debian GNU/Linux) FrontPage/5.0.2.2635 mod_ssl/2.0.54 OpenSSL/0.9.7e
    ———-
    that is the error I get when I access a page. I do not have any posts in my site.

    htaccess file reads:

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

    Strange that it is only when you import your old pages.

    Maybe it is to do with the permalinks on the imported pages?

    I cannot see a reason why it should happen otherwise.

    When you bring across the old site, are you leaving the fresh install .htaccess or overwriting it?

    Thread Starter mrkingid

    (@mrkingid)

    when I brought over the site I left out the .htaccess as it would have been incorrect with having

    ReweriteBase / new-dev-site
    and
    RewriteRule . new-dev-site/index.php [L]

    Is permalinks help in the DB at all?

    Yes the permalink structure is maintained in the database. (wp_options)

    Thread Starter mrkingid

    (@mrkingid)

    I checked the DB and it says I have /%year%/%monthnum%/%day%/%postname%/ which is the one I wanted, but still nothing. Grrrrrrrrrrrr

    Thread Starter mrkingid

    (@mrkingid)

    Is there something wrong with my php.ini file?

    cgi.fix_pathinfo=1
    extension=curl.so
    extension=domxml.so
    extension=imap.so
    extension=mcal.so
    extension=mcrypt.so
    extension=mhash.so
    extension=mysql.so
    extension=xslt.so
    extension=gd.so

    #register_globals = off
    #allow_url_fopen = off

    #expose_php = Off
    max_execution_time = 150
    max_input_time = 60
    #variables_order = “EGPCS”
    #extension_dir = ./
    upload_tmp_dir = /tmp
    #precision = 12
    #SMTP = relay-hosting.secureserver.net
    url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”

    memory_limit = 20M
    post_max_size = 8M
    file_uploads = On
    upload_max_filesize = 8M

    zend_optimizer.optimization_level=15
    zend_extension=”/usr/lib/ZendOptimizer-4-3-x.so”

    #[Zend]
    #zend_extension=/usr/local/zo/ZendExtensionManager.so
    #zend_extension=/usr/local/zo/4_3/ZendOptimizer.so

    Logically there cannot be anything wrong with your PHP install or your apache settings, because you say that the pretty permalinks work fine if you just do a fresh install.

    So it points to a problem that is being introduced when you copy across your existing content. Perhaps a theme issue or something?

    Thread Starter mrkingid

    (@mrkingid)

    possible but not likely as a fresh install with the same theme works fine.

    Besides it has happened on two sites i have built somewhere else and moved over. Won’t be doing that anymore.

    I’d really hate to have to rebuild everything.

    Besides, what could it possibly be in a theme that would do that?

    Thread Starter mrkingid

    (@mrkingid)

    This is interesting

    In the WordPress address (URL)and Blog address (URL)boxes I had the addresses minus the ‘www’

    On the other site that it works I used the www

    I went back and added the www to the address so it read. https://www.design-studio.com

    Then changed permalinks, but still no luck.

    I thought I was onto something as the other site I have permalinks issues with had the www missing as well.

    Could this still be something?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.

    Does Apache have the mod_rewrite extension enabled?

    My guess is no.

    Thread Starter mrkingid

    (@mrkingid)

    Yup it’s on.

    That is what is confusing me so much.

    Are you copying across directories when you copy your old install?

    If so, are the ownership and access permissions set correctly for your new host after the copy? (For example on some hosts if you unzipped a direct copy from another system it would unzip it with unknown owners)

    Thread Starter mrkingid

    (@mrkingid)

    I did copy directories over yes.

    Just went through the directories and the only difference from this site and the one that works is that the one that works has SGID checked when chmodding. Not sure what SGID is but I made the changes on the other site but still no go. ??

    I think you may be on to something though.

    Thread Starter mrkingid

    (@mrkingid)

    even deans permalink migration plugin doesn’t fix the issue

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Permalink issue after site migration to different host’ is closed to new replies.