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

URL Rewrite question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  permissions  
Author Message
jbrady1

External


Since: Mar 04, 2004
Posts: 5



(Msg. 1) Posted: Thu Mar 04, 2004 9:29 pm
Post subject: URL Rewrite question
Archived from groups: alt>apache>configuration (more info?)

Hello all,

I'm new to this so please be gentle.

I don't want people accessing my site to use the www part for various
reasons. Most people when linking to my site seem to use the
http://www.mydomain.net/ version of the url.

So I want the URL to be rewritten when somebody access the site through
the www url to the one without, regardless of which file they request.

Basically, I want 'http://www.mydomain.net/ to always become
'http://mydomain.net/'

I tried reading the documentation for mod_rewrite but it sounded like
greek to me (and I'm not greek), so a simple example of how this could
be accomplished would be greatly appreciated.

--
J Brady

 >> Stay informed about: URL Rewrite question 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Mar 05, 2004 9:29 am
Post subject: Re: URL Rewrite question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jonathan Brady <jbrady.DeleteThis@removethisspamkiller.myfmail.com> wrote:
 > I don't want people accessing my site to use the www part
 > So I want the URL to be rewritten when somebody access the site through
 > the www url to the one without, regardless of which file they request.

ServerName mydomain.net
UseCanonicalName On

Davide

--
| "You know, it's at times like this when I'm trapped in a Vogon airlock
| with a man from Betelgeuse and about to die of asphyxiation in deep
| space that I really wish I'd listened to what my mother told me when I
| was young!" "Why, what did she tell you?" "I don't know, I didn't<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: URL Rewrite question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
url rewrite question - I'm just beginning to poke around in apache internals, so I want to check this before I try it. Problem: People who think my server is IIS and trying to get various *.exe and *.dll files in an attempt to compromise the server. The directory path used..

mod rewrite question - I'm hoping I can get an answer to one of the 4 questions I've posted to this group over the last couple of months, so here goes. I'm serving XHTML files as application/xhtml+xml as they should be. But IE doesn't like this. What I wanted to do was us...

Question about MOD Rewrite IP redirection - I have a closed site where I want to redirect users based on their IP addresses to different sub-directories. What is the proper syntax using mod-rewrite to accomplish this? Here are two different IP example flavors of what I am looking for -- any othe...

Simple(?) rewrite question (ServerAlias) - Hi. I have several entries in my httpd.conf on my ServerAlias (in VirtualHost): ServerAlias www.domain.abc www2.domain.abc www.mydomain.abc etc.. I want to rewrite the URL so that it always displays www.domain.abc even though the user writes..

Mod rewrite and OSX - Hi, Mod_rewrite is loaded in httpd.conf, but it does not work, is that something I missed ? Coluche
   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 ]