Coder Social home page Coder Social logo

Problem with permalinks about wordmove HOT 6 CLOSED

welaika avatar welaika commented on May 18, 2024
Problem with permalinks

from wordmove.

Comments (6)

Arkham avatar Arkham commented on May 18, 2024

Hey there! Can you please paste an example of your Movefile? Moreover, are you using wordmove push --all by chance?

from wordmove.

AndreaBarghigiani avatar AndreaBarghigiani commented on May 18, 2024

Sure:

local:
  vhost: "http://localhost:8888/trueIdeaMus/"
  wordpress_path: "/Volumes/Sviluppo/www/trueIdeaMus" # use an absolute path here

  database:
    name: "trueIM"
    user: "root"
    password: "root"
    host: "localhost"

staging:
  vhost: "changedbyme"
  wordpress_path: "/home/changedbyme/public_html" # use an absolute path here

  database:
    name: "changedbyme"
    user: "changedbyme"
    password: "changedbyme"
    host: "localhost"

  exclude:
    - ".git/"
    - ".gitignore"
    - ".sass-cache/"
    - "bin/"
    - "tmp/*"
    - "Gemfile*"
    - "Movefile"
    - "wp-config.php"
    - "wp-content/*.sql"
    - "trueIdeaMus.sublime-project"
    - "trueIdeaMus.sublime-workspace"
  ssh:
    user: changedbyme
    password: changedbyme
    host: changedbyme

Actually, from time to time, I need to run a wordmove push --all because maybe I am working on some plugin configuration or I have to add/remove posts or pages to test some things out. I use the same permalink structure on both systems and I thought I could be fine with it, but maybe it's not the right way of thinking...

Thanks for the help!

PS: where you read changedbyme means that I have edited the information for security reasons ;)

from wordmove.

Arkham avatar Arkham commented on May 18, 2024

The fact is that --all updates the core wordpress installation too, so I guess it may be that command to overwrite your htaccess, you should try adding that file to your ignore list too!

Morever, another thing to take into consideration is that ssh is using rsync --delete to keep you local and remote installations in sync, so all the files on your remote installation which aren't in your local installation get deleted on the remote host.

I'll ask for more opinions from @pioneerskies here :)

from wordmove.

alessandro-fazzi avatar alessandro-fazzi commented on May 18, 2024

I would exclude htaccess all the way. Its configuration is

  • managed by wordpress backoffice (most of the time)
  • almost environment dependent

so I can't see a real need in order to move it back and forth dev and production.

Overall I'd like to advice you to use --all and/or -w flags as few times as possible; by theory they are needed just after a WordPress core update. In all other common use case -tpd is the way to go (themes, plugins, database).

Let us know if such approach works for you

from wordmove.

AndreaBarghigiani avatar AndreaBarghigiani commented on May 18, 2024

I'll keep that in mind, thanks!

from wordmove.

kevinwhoffman avatar kevinwhoffman commented on May 18, 2024

I just ran into this problem and wanted to confirm that excluding .htaccess in my Movefile resolved the issue of having to manually refresh permalinks. Thank you!

from wordmove.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.