Problem with Permalinks and change of directory (3 posts)

  1. casidiablo
    Posted 8 years ago #

    Hi guys!

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


    But I decided to put it like this:


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


    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
    Posted 8 years ago #


  3. iridiax
    Posted 8 years ago #

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


    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