Home Apache Rewrite mode. Rewrite Rule
Reply: 0

Apache Rewrite mode. Rewrite Rule

User Pro
1#
User Pro Published in 2017-11-13 08:55:22Z

Links

http://example.com/en/media/.../img.jpg
http://example.com/en/media/.../style.css
http://example.com/en/media/.../script.js
http://example.com/en/media/.../file.pdf
http://example.com/en/media/.../file.doc

and other extensions...

I need to check extensions (jpg|png|css|js|doc) at the end of query string and remove language (Part beetween http://example.com/ and /media/). I dont know how much and which specific symbols it will have.

en (En, English, En-en, En.en) ru (Ru, Russian, Ru-ru, Ru.ru)

http://example.com/media/.../img.jpg
http://example.com/media/.../style.css
http://example.com/media/.../script.js
http://example.com/media/.../file.pdf
http://example.com/media/.../file.doc
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297243 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO