Problems with the Windows version of XAMPP, questions, comments, and anything related.
by tuudik » 30. January 2009 13:04
Hi, how can i make my urls shorter, lose index.php
For example
ATM address is:
- Code: Select all
http://subdomain.uk.domain.com/index.php/Main_Page
I want it:
- Code: Select all
http://subdomain.uk.domain.com/Main_Page
In my httpd-vhosts.conf i have:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/xampp/htdocs
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain.uk.domain.com
DocumentRoot C:/xampp/htdocs/subdomain
<Directory C:/xampp/htdocs/subdomain >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
-
tuudik
-
- Posts: 9
- Joined: 30. January 2009 08:44
by Izzy » 30. January 2009 13:12
Perhaps it's your wiki again because there is no folder index.php.
Read your wiki documentation and configure it correctly.
C:/xampp/htdocs/subdomain/index.php/Main_page/
index.php is a file just move it into Main_page folder.
Is Main_page is a folder?
If so C:/xampp/htdocs/subdomain/Main_page/index.php is the paths in the vhosts conf file.
-
Izzy
-
- Posts: 3344
- Joined: 25. April 2006 17:06
by tuudik » 30. January 2009 13:17
No.
i want to make same as wiki has
they have done this:
- Code: Select all
http://en.wikipedia.org/w/index.php/Main_Page
to this
- Code: Select all
http://en.wikipedia.org/wiki/Main_Page
So Main_Page is not folder.
real address is actually
- Code: Select all
http://en.wikipedia.org/w/index.php?title=Main_Page
-
tuudik
-
- Posts: 9
- Joined: 30. January 2009 08:44
by Izzy » 30. January 2009 13:25
This is done in the wiki not in the conf file and can only be done using a PHP script which the wiki uses.
As I said read the wiki documentation and configure your wiki correctly or learn php and create your own script.
-
Izzy
-
- Posts: 3344
- Joined: 25. April 2006 17:06
by tuudik » 30. January 2009 13:28
its mainly made in apache confs
-
tuudik
-
- Posts: 9
- Joined: 30. January 2009 08:44
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 88 guests