jaagare — 2013-06-28T05:40:03-04:00 — #1
There is a minor issue that I am facing and have been unable to solve.
It is using wordpress and regular folders and trying to access regular HTML files in subfolders
For example here is the scenario.
I have wordpress installed and along with that have folders like Sales / Marketing etc. I want that if users type like domain . com / Sales or domain . com / sales then the user should be able to access that folder. I have sub sites in it which are made in regular html.
To do this I added the mod speling code
Now this works by itself (without the wordpress htaccess code being added)
As soon as wordpress code is added, the speling directive stops working and work only on wordpress urls and not on regular sub folder urls. like domain . com / Selling-Tips / or domain . con / selling-tips / works fine in wordpress but the subfolders cannot be accessed using any case.
Could anyone suggest why the code does not work for regular html urls in subfolders and is there any way out by which we can force the htaccess to check all folders and allow URLs in any case?
dklynn — 2013-06-29T04:52:38-04:00 — #2
Please show your .htaccess ... in which I would expect to see exclusions for your subdirectories BEFORE WP greedily snaps-up all URIs and redirects to its index.php for processing.
Also, you may want to explain mod_speling for others as it's a wonderful Apache module (unless you're using WordPress in which case it should be turned off as it should be unable to alter the URI to resemble files within the WP structure).
jaagare — 2013-06-29T10:37:01-04:00 — #3
Thanks for the direction @dklynn. But I already moved the other files to another folder which I found was easier and moved wordpress to another folder so there is no clash and all is fine now.
For the reference of other users > mod_speling basically is a great way to fix issue related to Case while typing a URL. But again it needs to be used with care as it is resource intensive too. Its an easy way to fix some issues you might face when you move from a windows to a linux hosting or at times even if you are having users typing a different case an it results in a non existing url. The mod speling tries to fix these issues.
dklynn — 2013-06-30T19:15:27-04:00 — #4
Folks, mod_speling can also correct minor typographical errors (by trying to match the request with your file names). That makes it a great tool for those webmasters expecting visitors to enter URLs by hand (personally, I prefer to provide a 404 script for that). mod_speling but it is a little-known, fabulous tool from Apache.
Please note that we have spelled the module's name correctly. The Apache people thought it funny to misspell mod_spelling by eliminating one of the L's - I have to agree, although this is a very minor point (of interest).
system — 2014-10-08T00:29:22-04:00 — #5
This topic is now closed. New replies are no longer allowed.