I have a site setup with a template directory called “pages” so I can call to the pages with the following URL:
http://sitename.com/pages/page-name
However, for SEO reasons I would prefer to remove the “pages” part of the URL so that it reads as:
A search on Google has presented some possible solutions but there is some type of conflict. Perhaps with the my rules to remove “index.php”? Can anyone offer any pointers? Below is my current redirect conditions.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
RewriteEngine On
# BEGIN ExpressionEngine Rewrite
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteRule ^(.*)$ /index.php?$1 [L]
# END ExpressionEngine Rewrite
</IfModule>
/page-name
is prettier, but there's no SEO benefit to having a slightly shorter URL.