Forum Moderators: phranque

Message Too Old, No Replies

.htaccess allow for a folder

         

john28uk

10:53 am on Oct 1, 2007 (gmt 0)

10+ Year Member



Hi

I have just aqquired a site and the htaccess file rewrites all the URLs to be more search engine friendly which is cool, but I want to setup PHPmyadmin to backup the database and make edits etc, the problem is how do I allow folders in htaccess file, as at the moment it just defaults to the home page whatever I do? The rest of the site works as it should.

Thanks John

phranque

12:07 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



how do I allow folders in htaccess file

i'm not quite sure what your question is but the htaccess file applies to the directory in which it resides.
in other words, each directory may have its own htaccess file.

john28uk

12:17 pm on Oct 1, 2007 (gmt 0)

10+ Year Member



Hi, ok maybe I need to give you an example, if i enter mydomain.com/folder it does not show the content of that folder but the front page, if I delete the htaccess file the folder can be accessed ok.

Do I need a htaccess file for the folder?

Thanks John

jdMorgan

8:55 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds like the wrong question... I'd be asking, "What's wrong with my .htaccess file that causes the home page to be displayed if the file named 'folder' is requested?" To be clear, in order for Apache to treat '/folder' as a subdirectory, you'd have to specify it as '/folder/' -- but that's not the problem here.

Jim

g1smd

10:22 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The instructions that make the redirect happen are going to need one extra line of code added.

That line simply tests whether you are asking for the folder that you do want to access, or not.

If you are not, then the redirect is allowed to proceed normally.

john28uk

3:35 pm on Oct 2, 2007 (gmt 0)

10+ Year Member



The instructions that make the redirect happen are going to need one extra line of code added.
That line simply tests whether you are asking for the folder that you do want to access, or not.
If you are not, then the redirect is allowed to proceed normally.

Thanks for the reply could you possibly enlighten me with the extra line code?

Thanks
John