Hello,
I am running RedHat & Apache. RedHat does not allow creating more
that 32000 subdirectories in one folder due to #defined constant
limitation in the core code.
I need to display 47000 directories on web page:
e.g. mydomain.com/andrew , mydomain.com/bill , etc. Each directory
contains .html/htm files and image files (*.jpg, *gif, jpeg etc.)
The directory structure has been created previosly some time ago and
worked perfectly on WinNT machine untill now. Modifying HTML seems to
be a big job to do.
Can anyone suggest a solution using mod_rewrite?
Thanks!
Dgrand 4 2549
Support <di***@my-deja.com> wrote: I am running RedHat & Apache. RedHat does not allow creating more that 32000 subdirectories in one folder due to #defined constant limitation in the core code.
What filesystem are you using?
I need to display 47000 directories on web page: e.g. mydomain.com/andrew , mydomain.com/bill , etc.
[snip]
Modifying HTML seems to be a big job to do.
No kidding :)
But a regexp equivalent to the rule below seems to be more efficient
than using the rewritengine.
Can anyone suggest a solution using mod_rewrite?
A simple workaround would be to reorganize directories like:
/a/andrew
or
/b/i/bill
With the rewrite engine it would become something like:
RewriteRule ^(.)(.*) /$1/$1$2
You'll need to lookup the exact syntax yourself :)
--
Daniel Tryba
Daniel Tryba <ne************ ****@canopus.nl > wrote: No kidding :)
But a regexp equivalent to the rule below seems to be more efficient than using the rewritengine.
(forgot half the sentence)
So spending some time to figure out how to edit the html might be the
longterm goal. Using sed/awk/perl/php or some other scripting magic to
rewrite href or img attributes shouldn't be to difficult eiter.
--
Daniel Tryba
Daniel,
thank you for the reply. That ia what I am doing now - moving all the
stuff into /a/andrew ; /b/bill etc. Anybody knows exact syntax for
Mod_rewrite for this sort of directory arrangment? RewriteRule ^(.)(.*) /$1/$1$2
I've tried
RewriteRule ^([a-zA-Z]{1})(.*)$ /$1/$1$2 [L]
does not seem to work
DgranD
Daniel Tryba <ne************ ****@canopus.nl > wrote in message news:<cl******* ***@news.tue.nl >... Support <di***@my-deja.com> wrote: I am running RedHat & Apache. RedHat does not allow creating more that 32000 subdirectories in one folder due to #defined constant limitation in the core code.
What filesystem are you using?
I need to display 47000 directories on web page: e.g. mydomain.com/andrew , mydomain.com/bill , etc. [snip]
Modifying HTML seems to be a big job to do.
No kidding :)
But a regexp equivalent to the rule below seems to be more efficient than using the rewritengine.
Can anyone suggest a solution using mod_rewrite?
A simple workaround would be to reorganize directories like: /a/andrew or /b/i/bill
With the rewrite engine it would become something like: RewriteRule ^(.)(.*) /$1/$1$2
You'll need to lookup the exact syntax yourself :)
"Daniel Tryba" <ne************ ****@canopus.nl > wrote in message
news:cl******** **@news.tue.nl. .. Support <di***@my-deja.com> wrote: I am running RedHat & Apache. RedHat does not allow creating more that 32000 subdirectories in one folder due to #defined constant limitation in the core code.
What filesystem are you using?
I need to display 47000 directories on web page: e.g. mydomain.com/andrew , mydomain.com/bill , etc. [snip]
Modifying HTML seems to be a big job to do.
No kidding :)
But a regexp equivalent to the rule below seems to be more efficient than using the rewritengine.
Can anyone suggest a solution using mod_rewrite?
A simple workaround would be to reorganize directories like: /a/andrew or /b/i/bill
With the rewrite engine it would become something like: RewriteRule ^(.)(.*) /$1/$1$2
Or to reduce the amount of directory reorganization, just split them up into
two folders:
RewriteRule ^([a-j].*) /a-j/$1
RewriteRule ^(.*) /the-rest/$1 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: R.Wieser |
last post by:
Hello All,
I'm trying to get a "Virtual Listbox" to work. I've currently got a form,
and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and
LBS_NODATA flags on it. I've allso subclassed the window and do see all
kinds of WS_??? messages coming by.
But now I'm stuck :-\
I've got *no* idea what to do next, and all my searching on the web leads me
|
by: D |
last post by:
Hi folks,
This may be pretty simple for you guys but it has me stumped.
BTW I'm using Java 1.1, I know it's old, don't ask me why, I just have to.
I have a long string in excess of 50k that I need to process in 32k chunks.
The problem is all string processing in Java is done with integers. Is
there an easy way to stream multiple 32k chunks of information from a
string/array into a holding string/array?
|
by: PaulR |
last post by:
Hi,
We have a Server running SLES 8 and 3GB memory, with 1 DB2 instance and
2 active Databases.
General info...
DB2level = "DB2 v8.1.0.72", "s040914", "MI00086", and FixPak "7"
uname -a = Linux galahad 2.4.19-64GB-SMP #1 SMP
/etc/sysctl.conf
kernel.shmmax=268435456
|
by: Rahul |
last post by:
Hi Everybody
I have some problem in my script. please help me. This is script file.
I have one *.inq file. I want run this script in XML files. But this
script errors shows . If u want i am attach this script
files and inq files. I cant understand this error. Please suggest me.
You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online.
Plz....Plz..Plz...
|
by: Rik G. |
last post by:
I'm trying to replace a PHP query string with virtual directories using
Apache's mod_rewrite. Here's my test .htaccess:
RewriteEngine on
RewriteRule ^qqq$ database.php?cat=0
RewriteRule ^qqq/xxx$ database.php?cat=0
The problem is that database.php contains several relative paths to
images. This means mydomain/qqq works fine and all the images are found
but when typing mydomain/qqq/xxx the file database.php seems to think it
| |
by: jaanus |
last post by:
Here we go...
What I have been trying to do is to forward all http requests containing /cms/ to http://cms.mydomain.com/
example1: http://host1.mydomain.com/cms/init.php would be parsed from http://cms.mydomain.com/init.php (via ajax request)
example2: <script src="http://host1.mydomain.com/cms/example.js" in <html><head> would be parsed from http://cms.mydomain.com/example.js
physically there are no cms directories in...
|
by: dennis.sprengers |
last post by:
* I'm trying to work out some rewrite rules that should do the
following:
case 1: a request to mysite.com:
rewrite http://www.mysite.com/files/sheets.ppt
to http://www.mysite.com/sites/default/files/sheets.ppt
case 1 - n: a request to othersite.com:
rewrite http://www.othersite.com/files/sheets.ppt
to http://www.othersite.com/sites/othersite/files/sheets.ppt
|
by: beary |
last post by:
Hello everyone,
I posted this in unix/linux but it received no replies, so I assume it was the wrong forum. I'm trying here.
I'm in way over my head with file permissions. The directory and files are sitting on a linux server. I know almost nothing about linux.
The background: I was given a web share by my IT admin. Initially, the web share had 3 users, myself (as the owner) ,root (the group) and everyone. I could copy and paste from my...
|
by: Dale |
last post by:
again, i know this is OT...just move along to the next post if it bugs you.
:)
i had been trying to have this:
project.66.204.32.110
from the client browser, map to a virtual host where the document root would
be:
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |