Question
Why aren't my Wordpress permalinks working?
I have a Wordpress site in a sub directory:
/var/www/mysite/
When I visit http://myip/mysite/
it works with “Plain” permalinks (i.e. http://myip/mysite?page_id=6
) and I can navigate the site.
However, when I use “Post name” permalinks (i.e. http://myip/mysite/mypage/
), I get a 404. It works fine locally. This is what my .htaccess
file looks like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /mysite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /mysite/index.php [L]
</IfModule>
# END WordPress
Under Settings > General
in Wordpress, I have both the Wordpress Address and Site Address set to:
http://myip/mysite
What am I missing?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×