Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Redirect Question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Server: Apache/2.0.48 (Win32)  
Author Message
user2661

External


Since: Jan 29, 2004
Posts: 1



(Msg. 1) Posted: Thu Jan 29, 2004 12:03 pm
Post subject: Redirect Question
Archived from groups: alt>apache>configuration (more info?)

Hi,

I'm running a php-nuke site at lets say "domain.com". For some
reason, php-nuke doesn't like people browsing the site as
"www.domain.com". So what I need to do is whenever someone tries to
access "http://www.domain.com", they automatically get redirected to
"http://domain.com".

What's the best way to do this?

Cheers,
CrazyIvan

 >> Stay informed about: Redirect Question 
Back to top
Login to vote
rossznospam

External


Since: Jan 16, 2004
Posts: 15



(Msg. 2) Posted: Thu Jan 29, 2004 8:30 pm
Post subject: Re: Redirect Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

CrazyIvan wrote:

 > Hi,
 >
 > I'm running a php-nuke site at lets say "domain.com". For some
 > reason, php-nuke doesn't like people browsing the site as
 > "www.domain.com". So what I need to do is whenever someone tries to
 > access "http://www.domain.com", they automatically get redirected to
 > "http://domain.com".

mod_rewrite:

RewriteCond %{HTTP_HOST} ^www.domain.com
RewriteRule (.*) <a style='text-decoration: underline;' href="http://domain.com$1" target="_blank">http://domain.com$1</a> [L,R]

--
Rossz<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Redirect Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Redirect setup question. - I've been doing some research on the best way to do this and so far I've found the best information here so before I make a chance to our web server I thought I'd run it by you before I do it just to make sure I've understood what you've been saying. ..

Generic redirect question. - Redirect for specific E*.html pages to a cgi script (passing * values to it). Anyone? Thanks in advance.

redirect.pl - help - Greetings, I have apache 1.3 installed on FreeBSD 4.7. I'm trying to find a redirect.pl for my cgi-bin (need it for a web page). where is this located ? Or, where can I get it ? thanks, -D

redirect - Hi , I have apache in my win2000 for server web with +/- 60 sites. I must set config for this : All people that connect to my fixed ip to external must redirect to dir : /public/ Only the local pc can navigate inside all server dir ??? Thks

apache 2 redirect - I had to add this my apache 2 configuration: RewriteRule ^(.*)/$ $1/index.html to avoid permission errors. Now my problems is, there is one instance where I would like direct a url of a certain form to two other url's based on the url. I would like t...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]