I’ve ran into that trouble before with some of my sites when I transferred them to another server.
Here’s what I did. edit your apache2.conf
at /etc/apache2/
folder.
Run the following command:
nano /etc/apache2/apache2.conf
Scroll down and look for this section with a comment:
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
Make sure that this is the one in there:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
For short, grant it. For your permalinks not to fail.
-Dave
Related Posts:
- wordpress admin panel loop on nginx
- Changing permalinks gives me 404 errors on nginx
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Does WordPress Change the .htaccess File When Updating?
- Setting 404 page in Nginx
- Move WordPress to subdirectory, keep ALL URLs
- 301 Redirects for Changed Permalink Structure & Category Base
- Permalinks to Custom does not work (out of box)
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- How do I turn off 301 redirecting posts (not canonical)?
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Passing variables through permalink structure
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- How to remove the index.php in the url?
- How to map permalinks with accented letters to sanitized slugs?
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- Remove subfolders from URL
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- nginx – permalinks with .php in url not working
- htaccess or redirect to cloak portion of a link?
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- custom naming of search permalink /search/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- Using only %postname%
- removed index.php now all pages 404
- Rewriting search permalink
- Enable Minify in W3Total Cache using NGINX [closed]
- removing index.php IIS 7.5 webconfig
- Rewrite rule never matching
- wordpress permalinks tweeks
- Getting a 500 internal server error ONLY on wp-admin/options-permalink.php
- Redirect user if it’s not logged in
- Custom url for a single page
- Using WP rather than .htaccess to redirect pages/posts
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- WordPress Permalinks on Mac OSX Server 5 (El Capitan)
- What happens when permalink settings are updated?
- WordPress redirection problem after moving to a new server?
- Change of permalink structure – redirects in htaccess breaks the archive links
- After moving from subdirectory to home, home page does not display
- Specific URL Rewriting with parameters in wordpress
- WP Site in subdirectory Joomla! Site – Permalinks not working
- Giving WordPress its own subdirectory – nginx
- Rewrite my default post URL
- How can I make my .htaccess file writeable by wp-admin?
- Permalinks keep reverting to 404 unless I re-save them
- WordPress installation in subfolder not working with nginx
- 404 with post name permalinks
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- .htaccess file missing from WordPress install directory
- Why does chrome keep downloading a file instead of running the site?
- Permalinks: Page Not Found
- How to protect htaccess so it can’t be overwritten?
- Permalinks not working
- Changes to .htaccess not updating the file (old rules still take effect)
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect parent taxonomy to it’s child
- AWS WordPress Install – pages/posts 404 on restart until updating permalinks
- WordPress blog posts permalinks giving 404 on nginx
- WordPress 404 in development area
- Need Help Correct Regular Expression Redirect Code
- Permalinks settings page blank
- 301 Redirects Result in 404 for WordPress Search Query Strings
- Custom Permalink
- Server Move: All pages leading home
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- How do I fix permalink and media library issues on a LEMP stack?
- Change in permalink structure made javascript cookie not work correctly
- Permalinks not working with Vagrant
- Only default permalink is working mod_rewrite enabled
- Nginx Rewrite Rule:: index.html added to every permalink
- How to redirect to correct pages after permalink structure change
- Moving local wordpress page to a real server subdomain broke my permalinks?
- How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
- Only plain permalinks working
- WordPress post-name permalink redirects to site.com
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- WordPress Sub domain
- Page preview is shown, updating page gives 404 error
- How to change old permalink?
- Redirect Uploads Folder to Query Vars in WordPress
- WordPress url ingore permalinks setting [closed]
- Redirect a Blogger Page URL to wordpress
- URL rewriting: removing the site’s basename for a specific category
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- Redirecting all posts after changing URL structure with htaccess
- Redirect all posts permalinks from “.html” to “/”
- flush_rewrite_rules breaks permalinks
- Reoccurring 404 Errors on all subpages
- After updage wordpress 4.4 to 4.5 nginx config works not properly
- WordPress 4.4 old permalink redirect
- Htaccess https 301 problem
- Nginx url rewrite rule problem
- Accessing Subdirectories in WordPress Install
- Empty permalinks settings in .htaccess
- How to rewrite a URL to another rewritten URL without changing the address?
- An other permalink problem – 404 Error
- WordPress Not Using Template Files After Permalink Update