Pretty permalink without index.php returns 404

I’m testing out different SEO advice I hear and see all over the internet as well as advice I get from colleagues and friends. I’d like to understand how important the url content and structure is compared to other things like linkbuilding. Does one get in the top of Google with pretty urls, decent content and very little or little quality links? Let’s find out.

So one of the things that had to be done was make shorter urls, and pretty human readable urls. I still had an ugly index.php in my url, and every time I tried to get it out I got 404’s all over the place. It happened to lots of other people within their CMS, and sometimes it was suggested that your hoster would be the culprit. For my situation, I  found an excellent post involving adding some text to my .htaccess file (https://wordpress.org/support/topic/remove-indexphp-from-permalinks), that did the trick for me.

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

# END WordPress

You might have to combine this with other stuff in your htaccess file, in case you already have some rewriting done, then skip the stuff thats double and integrate within one  instance of

IfModule mod_rewrite.c

So in one GO, I had
A: more pretty URLs
B: shorter URLs
Way to go on the SEO highway .. Awesome!

And just as I try to finish this post, I’m thinking, did I use enough words? Is my post long enough, (and not too long) …

Well that’s a whole different story, and now for just a minute I think we do not need to learn about SEO at all, we just need to think is this an article that people would like to read, would it help people solve a problem, or bring joy, that is the ultimate SEO question, the rest will follow automatically ..

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.