Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Remove html extension from sites’ is closed to new replies.
Hi guys,
Typically you can remove file extensions, using .htaccess, doing something like:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
However that doesn't seem to work. I was wondering if it would, since sites are generated
via the database. Any thoughts on how to accomplish this? We are migrating a few sites
from another platform that doesn't have .html after the pages and that could possibly
effect the ranking as Google has them indexed without the extension. We also feel it looks
more professional.
Thanks much!
The topic ‘Remove html extension from sites’ is closed to new replies.