Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> Off Topic
Nick(NR)

.htaccess

Got a slight problem, I'm trying to point a file to load at the sub domain

I want:
Code:
http://php.metaliation.net/portal.php


to basically show on:
Code:
http://php.metaliation.net/


this is what I've got in my .htaccess file:
Code:
RewriteCond %{HTTP_HOST} (www\.)?metaliation\.net\/portal\.php$
RewriteRule ^(.*)$ http://php.metaliation.net/$1 [R=301,L]


I could be completely off, as I did have a working file that did exactly this, but can't seem to find it.
admin (no pm's please)

I do a fair but if .htaccess stuff, but not with %{HTTP_HOST}

It is all a bit of a black art.
Brandon

Couldn't you just change the Directory Index?
Code:
DirectoryIndex portal.php
Nick(NR)

Brandon wrote:
Couldn't you just change the Directory Index?
Code:
DirectoryIndex portal.php


That's the one, cheers for jogging the memory, that's what I had before I lost the file somewhere, pretty sure I deleted it .

Thanks
Brandon

Yep, anytime Wink

       myfreeforum.org Forum Index -> Off Topic
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum