|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 119 Joined: 19-September 06 From: In front of my monitor. Member No.: 30,215 myCENT:34.77 |
Post
#1
Sep 3 2008, 10:07 AM
Can we use wildcards for file names in htaccess? What I mean is whether we can denote a file paths name to something like "/myweb/myfile-*.html" so that we ask the server to process any file with the name "myfile-COMPLETENAME.html"? Still didn't get the point? Consider a link linking to something like "/folder/". When a link like this is opened it will search for index.html or index.shtml and so on. To override this default behaviour we use the following code in servers .htaccess file: CODE DirectoryIndex index.html article.html With this the server first searches for index.html in any folder and if it is not found it then searches for article.html to send it to the browser. Now the problem --> Assume this partial site structure: CODE /tutorial-1/article-tut1.html /tutorial-2/article-tut2.html /tutorial-3/article-tut3.html . . . These folders neither contain index.html nor article.html. But as you see, it has files starting with "article". My question is whether we can use wildcards something like "article-*.html" in DirectoryIndex directive to tell the server to search any file which starts with "article-" with .html extension and display it when somebody opens a link to the folder? Patiently waiting for reply... This post has been edited by nitish: Sep 3 2008, 10:08 AM |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
2 | -dude911- | 2,867 | 10th September 2004 - 10:51 PM Last post by: Seņor Maniac |
|||
![]() |
7 | -prodigy- | 3,628 | 30th September 2004 - 11:49 PM Last post by: X3r0X |
|||
![]() |
2 | ashiezai | 3,225 | 28th July 2009 - 05:21 PM Last post by: TheDisturbedOne |
|||
![]() |
4 | icedragn | 2,668 | 9th December 2004 - 03:19 PM Last post by: icedragn |
|||
![]() |
1 | bb_boman | 2,465 | 6th January 2005 - 09:42 PM Last post by: serverph |
|||
![]() |
1 | SuburbanalCuts | 3,240 | 7th January 2005 - 07:02 AM Last post by: googlue |
|||
![]() |
2 | teob | 4,668 | 14th February 2005 - 01:07 AM Last post by: teob |
|||
![]() |
2 | JaVe | 1,349 | 23rd March 2005 - 07:35 PM Last post by: NilsC |
|||
![]() |
0 | herenvardo | 451 | 12th August 2008 - 03:08 PM Last post by: herenvardo |
|||
![]() |
9 | -Boomba- | 5,154 | 23rd November 2004 - 06:17 PM Last post by: -Infraid- |
|||
![]() |
5 | -Bondings- | 2,405 | 8th December 2004 - 08:20 PM Last post by: -Bondings- |
|||
![]() |
4 | -welbis- | 1,539 | 14th January 2005 - 03:01 PM Last post by: -welbis- |
|||
![]() |
5 | -bloodcalibur- | 1,702 | 9th February 2005 - 07:00 PM Last post by: -Little_OnE- |
|||
![]() |
11 | -cloud03- | 3,830 | 6th June 2008 - 05:57 AM Last post by: BloodWolf21 |
|||
![]() |
4 | -ravenrtc- | 1,691 | 14th March 2005 - 04:46 PM Last post by: -izmaelis- |
|||
|
Open Discussion | Time is now: 22nd November 2009 - 07:23 AM |
Web Hosting Powered by ComputingHost.com.