Please support our PHP advertiser: Lunarpages PHP Web Hosting
![]() |
•
•
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 13,954
Reputation:
Rep Power: 35
Solved Threads: 367
•
•
Join Date: Nov 2008
Location: Dumaguete, Philippines
Posts: 24
Reputation:
Rep Power: 1
Solved Threads: 1
•
•
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 13,954
Reputation:
Rep Power: 35
Solved Threads: 367
•
•
Join Date: Nov 2008
Location: Dumaguete, Philippines
Posts: 24
Reputation:
Rep Power: 1
Solved Threads: 1
•
•
Join Date: Sep 2007
Posts: 177
Reputation:
Rep Power: 2
Solved Threads: 20
•
•
•
•
••••Originally Posted by xarzthis might be a little bit different from what you want but you can place an index.php file inside myhost/docs/default and place a code index.php which will redirect you to any page that you wish in this case default.php
••••Originally Posted by jbennetor just add default.php to the default document list along with index.php etc...
••••Originally Posted by xarzor use the include("default.php") inside index.php
http://www.mediawiki.org/wiki/Manual
hort_URLThe link has according to the preview being replaced with a smily so I have also placed the above link in the codebox below:
http://www.mediawiki.org/wiki/Manual:Short_URL
And those rules as they are called are:
Alias /wiki /path/to/your/wiki/index.php Alias /wiki /var/www/w/index.php
RewriteEngine On RewriteRule ^default$ default.php
Signature note:
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
•
•
Join Date: Oct 2008
Posts: 13
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
what webserver are you using?
just configure it as a default document.
I am using XAMPP for developing my website.
I have set "index.php" as default document but that does not solve my problem
I want to run php files without .php extension.
For eg:-
"myhost/docs/index"
should run "index.php"
•
•
Join Date: Sep 2007
Posts: 177
Reputation:
Rep Power: 2
Solved Threads: 20
If you are using Xampp then you will need to enable the rewrite module in the apache httpd.conf file to use the .htaccess files(located C:/xampp/apache/conf/httpd.conf). To do this, first create a copy of the file located C:/xampp/apache/conf/httpd.conf or relative to your installation folder then open the original in notepad. After opening it in notepad, search for the term "LoadModule rewrite_module" without the quotes and when you find it, remove the hash at the beginning of the line. Then search for "AllowOverride None" without the quotes and at least twice will be found and need replacing with "AllowOverride All" (without the quotes). Then save the file and you should be able to use .htacess files. Another set of instructions just reworded of what I have said can be found at http://www.knowledgebase-script.com/...ticle-599.html
You may wonder how I know this, because I also have Xampp. Also when renaming a text file to ".htaccess", you may find that to be impossible to do due to a windows explorer error bug so just open notepad and save the file as ".htaccess" and that will create the file.
Also if it is all files you want to not have the extension use the following code in the .htaccess file.
You may wonder how I know this, because I also have Xampp. Also when renaming a text file to ".htaccess", you may find that to be impossible to do due to a windows explorer error bug so just open notepad and save the file as ".htaccess" and that will create the file.
Also if it is all files you want to not have the extension use the following code in the .htaccess file.
RewriteEngine On RewriteRule ^([^.]+)$ $1.php
Signature note:
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
![]() |
Similar Threads
Other Threads in the PHP Forum
- Problem with PDFLib (PHP)
- Apache (Linux Servers and Apache)
- missing php folder (PHP)
- problem in running (PHP)
- problem in running scripts (PHP)
- php5 and phpmyadmin?? (PHP)
- can we download files from other websites using php (PHP)
- 7 Tips to Keep your PC Running At Peak Performance (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: php e-mail problem
- Next Thread: Checkbox array
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode