E
E
exedis2015-11-19 10:22:09
Apache HTTP Server
exedis, 2015-11-19 10:22:09

How to remove extra characters from url using htaccess?

How to make my-site/catalog/shlack-test/ from my-site/catalog/shlack-(test) ?
I tried it myself, but I didn’t succeed, because I don’t understand well ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Spark108, 2015-11-19
@spark108

And in php you can't do it, for example preg_match();

X
xmoonlight, 2015-11-19
@xmoonlight

There is no point... On the router (PHP script), this must be done with the function of inaccurate pathfinding for routing from those available on the site.
Then there will be some sense: with erroneously typed URLs, it will redirect to a similar and close in value. At first - Levenshtein and shingles will help, then - you need to work out this comparison more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question