Here are the rules

Continuing the discussion from Gaconfig url builder bad impact on removing file extensions:


Thanks for reply. Here is the rewrite rule.

#remove file Extension
#Redirect extension requests to avoid duplicate content
RewriteRule ^([^?]+)\.html$ $1 [NC,R=301,L]

#Internally add extensions to request
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*) $1.html [L]

Please help me with this.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.