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
- Does WordPress Change the .htaccess File When Updating?
- Move WordPress to subdirectory, keep ALL URLs
- 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
- How to map permalinks with accented letters to sanitized slugs?
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- nginx – permalinks with .php in url not working
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- custom naming of search permalink /search/
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- removed index.php now all pages 404
- Rewriting search permalink
- Rewrite rule never matching
- Redirect user if it’s not logged in
- Custom url for a single page
- Using WP rather than .htaccess to redirect pages/posts
- 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
- 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?
- WordPress installation in subfolder not working with nginx
- 404 with post name permalinks
- Permalinks: Page Not Found
- How to protect htaccess so it can’t be overwritten?
- Permalinks not working
- WordPress blog posts permalinks giving 404 on nginx
- Need Help Correct Regular Expression Redirect Code
- Permalinks settings page blank
- 301 Redirects Result in 404 for WordPress Search Query Strings
- Custom Permalink
- Change in permalink structure made javascript cookie not work correctly
- Nginx Rewrite Rule:: index.html added to every permalink
- 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
- 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 “/”
- Reoccurring 404 Errors on all subpages
- Nginx url rewrite rule problem
- An other permalink problem – 404 Error
- WordPress Not Using Template Files After Permalink Update
- Allow Permalinks to Work with and without Hyphens
- How to prevent WP overwriting my custom htaccess rewrites?
- mod-rewrite exception? keep #hash in matching urls?
- url rewrite .htaccess extension to permalink
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- Permalink for specific page name
- Comment author url link is wrong? How to change from authors/ to author/
- How to redirect RSS feeds to Feedburner and keep pretty permalinks?
- WordPress not generating .htaccess but tells me that (Permalink structure updated.)
- Add post overwriting permalink from previous post in 4.6
- Ignore postname in permalink
- Permalinks – .htaccess
- Custom permalink structure with %postname% in front of domain name
- Configuring Home Page Address
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Custom permalink structure only saves with index.php inserted
- how to set up wp in folder within static website?
- Multiple sites with pretty permalinks with nginx
- mod-rewrite rules grabs “broken permalinks”, too
- Problems fixing a REST API 404 after Moving my WordPress Directory and updating Permalink Structure
- .htaccess to redirect to a wp page
- Redirect old /%category%/%postname%/ to just /%postname%/
- Got 404 error when changed siteurl via DB in WordPress
- WP permalink working, but why content doesn’t display
- All files in public_html, Cannot launch WordPress site via wp-admin
- permalinks constantly needs re-saving
- WordPress and NGINX – permalinks are not working with ending slash
- Issue with my links or permalinks
- Page permalink redirects to home page
- How to make custom page link to root automatically?
- Removing or hiding slug/permalink from htaccess
- When using number in url it is redircting to same page but when using character it redirects to 404
- Once redirected by Rewrite rules, how can WordPress know the page?
- ReWrite Permalink to New Permalink Nginx
- customize urls displayed by previous_post_link and next_post_link
- Removed and Reinstalled WordPress, Redirect Broken now
- Problem when i configure permalink
- custom permlink .htaccess file 404 Not Found error
- Why are all pages redirecting to homepage when using custom permalinks?
- Files placed in directory with wordpress 404
- 404 not found error on WordPress local host
- .htaccess regex for redirect subdomain to root domain & redirect old permalinks
- 404 posts error after 301 redirection of changed category / tag base
- Add segment to URL in htaccess
- 301 Redirect posts to newly added categories
- Standard Htaccess directives disappear by themselves