简体   繁体   中英

Pretty Permalinks not working - Resulting in 404

I just install Buddypress to my existing Wordpress site in localhost on ubuntu 15.04.However buddypress need to change the permalinks to other than the default permalink. i just change it to

/%sample-post%/

whatever the permaink i choose its give me the same error

The requested URL /ocpasl/issuses/ was not found on this server.Apache/2.4.10 (Ubuntu) Server at localhost Port 80

this is my .htaccess file.

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

what would be the problem. and how do i fix this.?

Possibly AllowOverride All is not set in your apache config file, you can enable it by editing vhosts or apache config(httpd.conf) file.

here is a sample configuration

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

Change

AllowOverride None

to

AllowOverride All

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM