SPANISH: Hello, I need it to work with all the html links (except with index), I tried using .htaccess but I had no luck.
For example ... to change this link of: link to link
Also if I go directly to link , it should be a mirror of link
Thank you very much!
ENGLISH: Hi, I need it to work with all html URLs (except index), I tried using .htaccess with no luck.
For example ... change this link from: link to link
Also if I enter directly to link , it must mirror link
Thanks a lot!
EDITED I managed to do it with this code: EDIT I managed to do it with this code:
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Redirect from signup.html to /?c=signup
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ([^.]+)\.html$ ?c=$1 [R,L]
# Rewrite from /?c=signup to signup.html
RewriteCond %{QUERY_STRING} ^c=([^&]+)
RewriteRule ^/?$ %1.html [QSD,L]