DirectoryIndex index.php index.html index.shtml index.htm
See the .htaccess question in this FAQ if you don't know how to do this.
When I enter the URL to my web site, the browser shows a white page with a lot of PHP code.
You need to add the following lines to the .htaccess file:
AddType application/x-httpd-php .php
AddType application/x-httpd-php3 .php
See the .htaccess question in this FAQ if you don't know how to do this.
How do I edit the .htaccess file?
Well, first of all you need to establish whether there's a .htaccess file in your document root or not. This can be
done be performing the following test: Point your browser to http://yoursite.com/.htaccess (note the dot before "htaccess"). If you get
a 404 error (File Not Found), there's no .htaccess file in your document root. However, if you get a 403 error ("Forbidden"), there's a .htaccess in your document root.
If you don't have a .htaccess file, you will need to make one. Open a text editor, click "New" and write the necessary lines (the lines are shown elsewhere in this FAQ). You should not write anything else besides these lines -- no HTML tags, no PHP tags, etc.
When you're done writing the file, upload it to the server and place it in the document root. Perform the test above to make sure the file has been placed in the right location.
If there's already a .htaccess file in your document root, all you need to do is load this file into a text editor and add the appropiate lines at the bottom of the file (the lines you need to write are shown elsewhere in this FAQ).
What's the advantages and disadvantages of using frames when redirecting?
There's one big advantage to using frames: The location bar in the browser does not change. I.e., if the visitor enters http://dir.yoursite.com, this
URL will remain in the location bar even though the real location is http://yoursite.com/dir. If you don't use frames, the URL in the location bar will change to the actual location (http://yoursite.com/dir in this example).
The disadvantage to using frames is the fact that the title of the page will not be shown. Instead, the location will be shown in the title bar. I.e., if the title of the index.html file at http://yoursite.com/dir is "My page", then this title
will not be shown if you are using frames. Instead the following title will be shown: "yoursite.com/dir". Another disadvantage of using frames is the fact that visitors cannot bookmark the sub pages of the main page.
What's the difference between the sub domains generated by the Subdomains script and real sub domains?
The price! "Real" sub domains are expensive. If you were to ask your web hosting company to create a sub domain for you, the company would have to change the web server configuration files
as well as the DNS server setup. This will of course cost you a lot of money. And this is just the price of one sub domain! With Subdomains you can create as many
sub domains as you want. However, "real" sub domains does have one big advantage which those created by the Subdomains script don't: With "real" sub domain, visitors to your web site
can enter a URL like this: http://subdomain.yoursite.com/somedir/somepage.html. This will not work with the sub domains created by the script -- only http://subdomain.yoursite.com will work. If the visitor enters the URL http://subdomain.yoursite.com/somedir/somepage.html, he/she will be redirected to http://yoursite.com/somedir/somepage.html.
Copyright, etc.
This script is released under the terms of the GNU General Public License (also known as "GPL").