Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Wildcard Subdirectories via htaccess |
|
Author |
|
wolfwood
Joined: 25 Aug 2017 Posts: 1
|
Posted: Fri 25 Aug '17 9:50 Post subject: Wildcard Subdirectories via htaccess |
|
|
I'm trying to figure out how to have wildcard sub-directories on my webserver. In example:
domain.com/1/weiurfda83/
domain.com/1/weiu9234usd/
domain.com/1/fj4329fj/
would go to domain.com/1/ without redirecting
Also
domain.com/1/weiurfda83/1.jpg
domain.com/1/weiu9234usd/1.jpg
domain.com/1/fj4329fj/1.jpg
would go to domain.com/1/1.jpg without redirecting.
Any help would be appreciated, thank you! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 28 Aug '17 23:04 Post subject: |
|
|
A good start point is using mod_rewrite
a help might be
Code: | ^/1/(.*)/(.*[0-9]+)\.jpg |
|
|
Back to top |
|
|
|
|
|
|