WordPress.org

Ready to get started?Download WordPress

Forums

Problem with Permalinks and change of directory (3 posts)

  1. casidiablo
    Member
    Posted 6 years ago #

    Hi guys!

    I have a problem with my wordpress blog. I had my permalinks like this:

    http://mysite.com/wordpress/year/month/day/name-post/

    But I decided to put it like this:

    http://mysite.com/name-post/

    The first step was change the directory to put wordpress in the root of my website. I followed this guide:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    It worked well. Later, the second step was to install the "Permalink Moved Permanently" plugin, because I didn't want to loss my trackbacks/pingbacks. It works well.

    When I went to http://mysite.com/wordpress/ I got a 404 error. So, I create a .htaccess file to redirect http://mysite.com/wordpress/ to http://mysite.com/.

    It worked well... BUT, when I want to go to http://mysite.com/wordpress/wp-admin/, I got a 404 error. I tried to do for 4 hours, but I couldn't. Could you help me?

    The unique thing I need is when I open http://mysite.com/wordpress/wp-admin/ the other rule doesn't work.

    This is my .htaccess that I have in mysite.com/wordpress/ folder:

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^casidiablo.net\/wordpress\/wp-admin$ [OR]
    RewriteCond %{HTTP_HOST} ^www.casidiablo.net\/wordpress\/wp-admin$
    RewriteRule (.*) http://www.casidiablo.net/wordpress/wp-admin [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^casidiablo.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.casidiablo.net$
    RewriteRule . ../index.php [L]

    Thank you so much!
    And excuse me for my mistakes writing in English.

  2. casidiablo
    Member
    Posted 6 years ago #

    Someone?

  3. iridiax
    Member
    Posted 6 years ago #

    NEVER use only /%postname%/ as your permalink structure:

    http://codex.wordpress.org/Using_Permalinks#Using_only_.25postname.25

    There really needs to be a warning on the permalinks settings page about this.

Topic Closed

This topic has been closed to new replies.

About this Topic