• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

redirecting url

GeorgeB

Chairman/CEO TMCG
NLC
I am using a livechat software called livezilla. I currently have it at chat.domain.com/chat.php

However, how can I change it, so that instead of chat.domain.com/chat.php it just takes it to chat.domain.com

I obviously cannot redirect it to point simply to chat.domain.com since it would take me to the admin part of the script. Any ideas?
 
Couldn't a .htaccess file do this with a mod_rewrite rule?

I guess it could as long as I could access chat.domain.com/chat.php just by going to chat.domain.com but I don't know what the code for the rewrite rule would be.

I am getting more familiar with rewrite rules, but still have not found a site that lays them out.
 
what you want to do is change the default page from index.html/index.php to chat.php. To do this add the following line to your .htaccess of chat.domain.com :
Code:
DirectoryIndex chat.php

Now when you visit chat.domain.com you will see chat.domain.com/chat.php
 
what you want to do is change the default page from index.html/index.php to chat.php. To do this add the following line to your .htaccess of chat.domain.com :
Code:
DirectoryIndex chat.php
Now when you visit chat.domain.com you will see chat.domain.com/chat.php

No offense, and perhaps you miss typed something, but that is actually the opposite of what I want to accomplish. What I want to accomplish is instead of chat.domain.com/chat.php it brings up that page just by going to chat.domain.com. Meaning the script that is located at chat.php would look like it is actually on chat.domain.com with no trailings.
 
No offense, but that is exactly what that does.
Example:
http://csrpromodding.com
http://csrpromodding.com/portal.php
http://csrpromodding.com/index.php

Visit all three URLs and you will see what I mean.

What happens when you are typing chat.domain.com is that the webserver is showing you the default index page, which is normally index.html or index.php. That htaccess line changes the default index page from index.php to chat.php, showing you the content of chat.php when you visit chat.domain.com.
 
No offense, but that is exactly what that does.
Example:
http://csrpromodding.com
http://csrpromodding.com/portal.php
http://csrpromodding.com/index.php

Visit all three URLs and you will see what I mean.

What happens when you are typing chat.domain.com is that the webserver is showing you the default index page, which is normally index.html or index.php. That htaccess line changes the default index page from index.php to chat.php, showing you the content of chat.php when you visit chat.domain.com.

I added that line of code, but it still pulls up chat.domain.com/chat.php
 
you put that in the directory of chat.domain.com, and when you access chat.domain.com it shows chat.domain.com/chat.php?
 
you put that in the directory of chat.domain.com, and when you access chat.domain.com it shows chat.domain.com/chat.php?

Yup, I put that in the directory for chat.domain.com, but when you type it in, it just goes to chat.domain.com/chat.php still.
 
I'm assuming you are talking about chat.nvasm.com, and I see what you mean. This must be caused either by an apache configuration setting or something in livezilla, i'm not sure which. Sorry I can't be of more help.
 
Perhaps some file modifications are in order? i.e. change the chat.php to index.php and move the admin file over to another directory called /admin ?
 
Back
Top