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

rewrite question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Editing the Host Header  
Author Message
oliver

External


Since: Jul 08, 2004
Posts: 11



(Msg. 1) Posted: Mon Aug 23, 2004 5:33 pm
Post subject: rewrite question
Archived from groups: alt>apache>configuration (more info?)

Hi,

I have changed some of the structure on my server and dont want to let the
user/google know.

I used to host a page on subdomain.domain.com and now its on

domain.com/pages/one/index.php?page=value

currently my server is set to rewrite subdmain.domain.com to
domain.com/subdmain.

the current setting is as such:

RewriteEngine on
RewriteRule ^(.*/[^/.]+)$ http://%{HTTP_HOST}$1/ [R,L]
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^[^.]+.domain.com$ [NC]
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([^.]+).domain.com(.*) /$1/$2

The issue is that I did not set this up. I dont want to ruin the setting,
but still add the feature described above to the current setting. I never
did this sort of settings, and I am quite confused about the manual in
apache about the rewrite engine.
How would the RewriteCond and the RewriteRule have to be in order to keep
the old environment and also implement the new rule?

thanks

Oliver

 >> Stay informed about: rewrite question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
URL Rewrite question - 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..

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...

Mod Rewrite question - newbie - Hi, I'm Carla, I'm a mod rewrite totally newbie- I'm trying to make search pages to look as html pages (mainly for search engines). I want that when I user click on http://sub.dom.com/fish.html apache serves http://dom.com/cgi/s.cgi?query=fish but I don'...

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...
   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 ]