-3

I When I call http://www.mysite.in/abc/xyz it shoud show up http://www.mysite.in/abc/xyz/index.php but the url shout not change in address bar and it should work with out "/" in the address. Please any one help me with .htaccess code for apache 2.2

Note: It should not list the directory content it should show up the page.. SEO Friendly URL.

Thanks Sreekanth

1
  • You need to give more information. What's changing? What is your current config?
    – Halfgaar
    Sep 12, 2013 at 18:02

2 Answers 2

1

It is how i did it Added the bellow code to root folder .htaccess

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^(abx/xyz.html)/?$ $1/index.php [L,NC]

And added the bellow code to the .htaccess file in side the xyz.html folder

DirectorySlash Off
Directoryindex index.php
Options -Indexes
0

You need to configure DirectoryIndex index.php and Options -Indexes.

Both shoud be default configurations on any Apache / PHP installation.

Something seems broken in your configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.