Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

htaccess redirect

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Installing Apache2.2 with mod_authnz_ldap on Sola..  
Author Message
kwodo.contact

External


Since: Aug 01, 2006
Posts: 1



(Msg. 1) Posted: Tue Aug 01, 2006 3:50 pm
Post subject: htaccess redirect
Archived from groups: alt>apache>configuration (more info?)

Hi everyone,

I have been bashing my head to solve this. I am not very good at
htaccess. Sad

There is 2 different domains, www.example1.net and www.example2.com.

I want to redirect a new domain to a folder on the original domain.

e.g. www.example1.net to www.example2.com/folder/index.html

Thanks in advance! Smile

Regards,
Kwodo

 >> Stay informed about: htaccess redirect 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Wed Aug 02, 2006 1:42 am
Post subject: Re: htaccess redirect [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<kwodo.contact.DeleteThis@gmail.com> schreef in bericht
news:1154472627.388259.50610@p79g2000cwp.googlegroups.com...
> I have been bashing my head to solve this. I am not very good at
> htaccess. Sad
>
> There is 2 different domains, www.example1.net and www.example2.com.
>
> I want to redirect a new domain to a folder on the original domain.
>
> e.g. www.example1.net to www.example2.com/folder/index.html
>
Just an untested thought ...
.... put into .htaccess at the document root of www.example1.net
RewriteEngine On
RewriteCond %{HTTP_REQUEST} !^(script|style|shared_images)
RewriteCond %{HTTP_HOST} ^www.example1.net$
RewriteRule (.*) folder/$1

Using .htacces [this way] has a [firm] performance penalty.

If you have full control over the server running these sites, consider
setting up a vhost for both sites, using the respective documentroots. Then
add to the vhost config of www.example2.com and alias 'folder' for the
documentroot of www.example1.net

You're up for a strong strugly to get all links to and from /folder/*
working at both ways.

HansH

 >> Stay informed about: htaccess redirect 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
.htaccess redirect - Is it possible to do something similar to this ... redirect http://www.widget.com/index.html http://www.newwidget.com/index.html If not, an alternative idea? Thanks

.htaccess redirect - Is there away to do this: If someone comes with yourdomain.com and have a redirect in your ..htaccess to redirect to www.yourdomain.com? Thanks.

specific redirect in .htaccess - Hello, I was wondering if it is possible to say in the .htaccess only if someone tries to call upon test1.htm to redirect him to test2.htm. The reason i want to do that is because I recently replaced my old website but the search engine still shows link...

Is there a possiblity to do a redirect in .htaccess? - Hi, following problem: I'm administering a website for an organization that has the website hosted on the server of a university that runs Apache on what I think is SunOS, so it should be a UNIX derivate. The link there so far has been something like...

.htaccess - DirectoryIndex / Redirect - Hi, i try to realize a redirection from a directory to a script. Some things i did, are working properly. i.e. A directory contains a .htaccess file, wich has an DirectoryIndex to a php script. Directory: /test/ ..htaccess: DirectoryIndex..
   Web Hosting Problem Solving Community! (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 ]