logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: tralling slash and index.php ?
Author
Ang3lus



Joined: 02 Aug 2010
Posts: 18

PostPosted: Sun 19 Sep '10 22:23    Post subject: tralling slash and index.php ? Reply with quote

Hi

How i can add index page to URL
for example when user type www.apachelounge.com/forum
the /index.php should add to current URL to become like this:
www.apachelounge.com/forum/index.php


thanks in advanced
Back to top
Virsacer



Joined: 16 Jan 2010
Posts: 108
Location: Germany, Darmstadt

PostPosted: Mon 20 Sep '10 1:46    Post subject: Reply with quote

I let php do the job (first line in index.php)

Code:
if(!strpos($_SERVER['REQUEST_URI'],"index.php"))header("Location: index.php");
Back to top
Ang3lus



Joined: 02 Aug 2010
Posts: 18

PostPosted: Mon 20 Sep '10 5:55    Post subject: Reply with quote

thanks for your help

but is there a possible way to do that using Apache configuration file

I used RedirectMacth directive to do that . However, it is not implement for all directories just for home page
Back to top


Reply to topic   Topic: tralling slash and index.php ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache