logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Wildcard Subdirectories via htaccess

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
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: 6202
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


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1