Jump to content

Recommended Posts

I have my main folder with index.php file in there which I have managed to mod rewrite successfully.

I have another folder within the main folder called admin.  In the admin folder I have another index.php file.

When I enter [url=http://www.mydomain.com/admin/]www.mydomain.com/admin/[/url] it doesn't display index.php in the admin folder.

Here is my mod rewrite .htaccess

[code]Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^([A-Za-z0-9\-_]+)/?$ index.php?page=$1
RewriteRule ^gallery/([A-Za-z0-9\-_]+)/([0-9]+)/?$ index.php?page=$1&id=$2
RewriteRule ^([A-Za-z0-9]+)/([0-9\-_]+)/?$ index.php?page=$1&pagenum=$2
RewriteRule ^admin/([A-Za-z0-9\-_]+)/?$ admin/index.php?page=$1 [L][/code]
  • 5 weeks later...
Check with your host, I dought they will though especially if you are on a shared host.

But you can add the following line to your .htaccess file:
[code]DirectoryIndex index.php[/code]

If you want index.php to be your directory index.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.