Re: [Andy] How to remove index.html at the end of each category URL and how to move the pages location from default "pages" folder
Ok I understand now that 301 redirect needs to happen.
There are 2 things to redirect though.
From www.example.com/pages/Example_Category to www.example.com/example_category (pages folder removed and uppercase removed)
I created .htaccess file with the content below and placed it to the web root but it didn't work
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteRule ^/pages/(.*) /${lowercase:$1} [R=301,NC]
I get this error
----------------------------------------------------------------------------------------------------------------------------------
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
----------------------------------------------------------------------------------------------------------------------------------
Any recommendations?
There are 2 things to redirect though.
From www.example.com/pages/Example_Category to www.example.com/example_category (pages folder removed and uppercase removed)
I created .htaccess file with the content below and placed it to the web root but it didn't work
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteRule ^/pages/(.*) /${lowercase:$1} [R=301,NC]
I get this error
----------------------------------------------------------------------------------------------------------------------------------
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
----------------------------------------------------------------------------------------------------------------------------------
Any recommendations?