• Dear Forum,

    I have just moved my website to a new server and i have done the following but still the permalink aren’t working and keep giving me “Not Found” error.

    1. .htaccess file is created by wordpress with the following code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /spacemsgdemodefault/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /spacemsgdemodefault/index.php [L]
    </IfModule>

    # END WordPress

    2. This didn’t work even. So someone suggested to go to vhosts and change “None” to All. That is done too.

    All this is done but even done the Not found error doesn’t go. Kindly help me out here on what i am missing so that i can get my site to work. Please.

    Regards,

    Maddy

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    2. This didn’t work even. So someone suggested to go to vhosts and change “None” to All. That is done too.

    Are you using Apache/httpd or nginx?

    If the former, you should have

    <Directory /path/to/wordpress>
      AllowOverride All
    </Directory>

    in your apache/http config file.

    Make that change and restart Apache/httpd

    Thread Starter maddysayz

    (@maddysayz)

    It is running on http config file. Just changed it there and restarted it again but that didn’t do the trick. It is still not loading.

    Kindly suggest something else please.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please post the relevant content from your httpd.conf or apache2.conf file.

    Thread Starter maddysayz

    (@maddysayz)

    Sorry for replying late. Had no access of email for sometime.

    Relevant content from apache2 is given below. Please remember the blog is hosted on the domain that looks something like this.

    dev.mdomain.com/blog/

    Here you go please:

    User www-data
    Group www-data
    
    AccessFileName .htaccess
    <FilesMatch "^\.ht">
        Require all denied
    </FilesMatch>
    
    <Directory />
      Options FollowSymLinks
      AllowOverride All
    </Directory>

    Appreciate a response.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    <Directory /> is incorrect.

    Where do you have WordPress installed?

    Thread Starter maddysayz

    (@maddysayz)

    Bro, my server directory structure is as follows:
    /hg/www/

    And then within this www i have two wordpress demos setup under setup1 and setup2 folder.

    Kindly suggest what should be the Directory i should be placing?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    <Directory /hg/wwww/setup1>
    AllowOverride All
    </Directory>
    <Directory /hg/wwww/setup2>
    AllowOverride All
    </Directory>

    Then restart httpd

    Thread Starter maddysayz

    (@maddysayz)

    Let me try doing that but just one question. Can’t i just do the below and i will be able to give this power to all the subdirectories under www? After all that is the public_html folder.

    <Directory /hg/www/>
    AllowOverride All
    </Directory>
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes, that should work.

    I like doing stuff at the lowest possible levels.

    Thread Starter maddysayz

    (@maddysayz)

    Brother that aint working either. What could be the cause :(. You have been really helpfull. Please help in getting this taken care of

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    tell me about this new web host… If it’s shared hosting, have you contacted tech support there? If you’re running your own VPS, are you using apache or nginx?

    Thread Starter maddysayz

    (@maddysayz)

    Here is all the information I have.
    Distributor ID: Ubuntu
    Description: Ubuntu 15.04 (GNU/Linux 3.19.0-30-generic x86_64)
    Release: 15.04
    Codename: vivid

    This is a dedicated hosting and not shared. Also we are using apache2 i.e. probably httpd and not ngnix.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are you the sysadmin?

    Thread Starter maddysayz

    (@maddysayz)

    No Sir. I am the site manager/developer

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You shoud probably get together with the sysadmin as there’s something not right with your http configuration.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Not Found Permalink Issue’ is closed to new replies.