Apache Rewrite question

This is a discussion on Apache Rewrite question within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm certainly no expert at this, but I'm assuming the following is possible...but as a beginner, I ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2008
zoo1023@gmail.com
 
Posts: n/a
Default Apache Rewrite question

I'm certainly no expert at this, but I'm assuming the following is
possible...but as a beginner, I have no idea where to begin!

I'm taking over a site, and the powers that be would like to keep the
status quo (http://original.com, for the sake of clarity).

They've recently purchased http://newsite.com, and would like to be
able to edit the files through the main CMS (CMS Made Simple is what
they're using), the one that controls http://original.com.

Adding those files in isn't a problem, except for the URL in the
address bar. Normal pages in original.com display as such:
http://original.com/index.php?page=about

Anything I add to the CMS will display in this way, so I CAN'T simply
add in the newsite.com pages in a subdirectory /newsite/ and use:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} newsite.com
RewriteCond %{REQUEST_URI} !/newsite
RewriteRule ^(.*)$ newsite/$1 [L]

Does anyone know a way to redirect http://newsite.com to
http://original.com/index.php?page=newsite without affecting all the
other pages in the site?

http://newsite.com will only have two or three pages, max, so I can
use the same method to mask the other two or three URLs.

This seems possible, if not easy and possible, but my Googling has
been in vain. Thoughts? TIA, Kate
  #2 (permalink)  
Old 03-19-2008
Andreas Prilop
 
Posts: n/a
Default Re: Apache Rewrite question

On Tue, 18 Mar 2008, zoo1023@gmail.com wrote:

> http://original.com, for the sake of clarity


For the sake of clarity, please don't abuse other people's domains.
Use
http://example.com/
http://www.example.com/
instead.
  #3 (permalink)  
Old 03-19-2008
zoo1023@gmail.com
 
Posts: n/a
Default Re: Apache Rewrite question

On Mar 19, 10:04 am, Andreas Prilop <aprilop2...@trashmail.net> wrote:
> On Tue, 18 Mar 2008, zoo1...@gmail.com wrote:
> >http://original.com, for the sake of clarity

>
> For the sake of clarity, please don't abuse other people's domains.
> Use
> http://example.com/
> http://www.example.com/
> instead.


Oh, I had no idea example.com was actually an example! I'll do that
from now on, sorry.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:20 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0