Permalink 404 Error
-
Hi there! So, I’ve been building a website for my employer and they decided they wanted me to build a second, smaller site as well using wordpress. I have been using wordpress 4.2.2 and wamp, and I was able to successfully create the second site using multisite. However, I am unable to access the old pages I created on the original site, and any new pages other than the home page on the new site are unavailable as well. They all give me ‘404 Not Found, the requested url was not found on this server’ error. I have tried to use multiple different permalinks, and discovered that the default works fine, and allows me to access those old pages and any new ones again. However, the default permalinks aren’t appealing to the eye and aren’t something my employer would want for their site’s pages, so I need some help fixing this issue. I’ve been looking all over the forums here to try to figure it out, but every solution I’ve tried hasn’t worked.
Here is my code in my .htaccess file, as I think this has something to do with my problem:
Options +FollowSymlinks
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule># END WordPress
I have also changed all AllowOverrides to ‘AllowOverride all’ in my httpd.config file in wamp.
I’m sure it’s something relatively simple I’m missing, or something simple I’ve overlooked, but I’m still pretty new to website building and coding in general, so your assistance would be greatly appreciated, thanks! ??
- The topic ‘Permalink 404 Error’ is closed to new replies.