logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Configuring Apache to deal with common alt URL's
Author
bailywolf



Joined: 10 Jan 2007
Posts: 1

PostPosted: Wed 10 Jan '07 18:56    Post subject: Configuring Apache to deal with common alt URL's Reply with quote

I have this server which serves pages using the standard "www.pagename.com/whatever" URL, but it fails without the 'www'.

To weird things up, the pages do server if the URL is structured like "http://hostname.pagename.com/whatever" sans 'www' but with the server's host name stuck on the front.

I inherited this box and this configuration- no idea why it's set up this way- but in fixing it, I'd like to prevent any links (internal or external) from breaking.

I think I'd simply like all links or connections to either of the above valid URL's to resolve as the standard 'www.pagename.com/whatever'. So, for example, if a link is hard coded to go to "http://hostname.pagename.com/whatever", it connects to the resource normally, but the URL the user sees gets changed to "www.pagename.com/whatever". And, of course, that keyed or linked pages without the 'www' connect properly.

I know that's two more or less different issues, but in looking around they seem to have the same set of possible solutions.

I've looked into the URL rewrite engine and 'mod_rewrite' but this seems like a whole lot of complex functionality for what strikes me as a really simple issue.

Redirects or Aliases might work, but I don't know about resolving URL's without the 'www' using this method.

The box is an IBM i5/OS running Zend Core's odd double-team of an Apache instance running in PASE (IBM's semi-UNIX environment) linked with a ProxyPass to the native Apache instance running under the i5/OS. The things you have to do to get PHP5 to run on an iSeries...

But beyond making sure I have the directives in the right config file, I don't know if this will make any difference. When running our sites off just the native Apache instance under i5/OS we had exactly the same issue.

Anyone tangle with this kind of thing before?

Thanks,

-B
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 15 Apr '07 14:21    Post subject: Reply with quote

did you set up an server alias with the www? Did you tell our DNS server that ?
Back to top


Reply to topic   Topic: Configuring Apache to deal with common alt URL's View previous topic :: View next topic
Post new topic   Forum Index -> Apache