logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Wildcard Subdirectories via htaccess
Author
wolfwood



Joined: 25 Aug 2017
Posts: 1

PostPosted: Fri 25 Aug '17 9:50    Post subject: Wildcard Subdirectories via htaccess Reply with quote

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

PostPosted: Mon 28 Aug '17 23:04    Post subject: Reply with quote

A good start point is using mod_rewrite

a help might be

Code:
^/1/(.*)/(.*[0-9]+)\.jpg
Back to top


Reply to topic   Topic: Wildcard Subdirectories via htaccess View previous topic :: View next topic
Post new topic   Forum Index -> Apache