How to make url short

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to make url short

Postby 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

Re: How to make url short

Postby 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

Re: How to make url short

Postby 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

Re: How to make url short

Postby 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

Re: How to make url short

Postby tuudik » 30. January 2009 13:28

its mainly made in apache confs
tuudik
 
Posts: 9
Joined: 30. January 2009 08:44

Re: How to make url short

Postby Izzy » 30. January 2009 13:36

tuudik wrote:its mainly made in apache confs
You seem to know how to do it so you won't need my help again.

When and if you work it out, you can mesmerize us all with your wisdom.

Here's the Apache docs that might help:
http://httpd.apache.org/docs/2.2/

This might help also - Manual: Short URL
http://www.mediawiki.org/wiki/Manual:Short_URL
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 116 guests