I have a map file which is working fine with SEO-friendly URLs
Now the customer want that the user should not be allowed to access the technical links means only SEO links should be accessable
e.g my map file looks like
buche-massiv-weiss-lackiert.html /?page=datail&productid=1212
at the moment SEO is working, but what I need is that If the user calls this
technical link i.e
/?page=datail&productid=1212
if should also be first redirected to SEO link and then the page should be called.
what will be the best way to do so?
2
Answers
In the same mapping file add a reverse entries like this:
Then have this rule at top of your htaccess for redirection to pretty URL:
This is assuming name of your
RewriteMap
ismymap
. Change it to whatever your map name is.With Helicon Ape you could use reverse map on the same map file like this:
Then your existing map rule.
With ISAPI_Rewrite you will have to create another reversed map file and make sure contents of both files are synched. Usage is something like: