[Typo3-debian] modrewrite and multiple sites.

Cousins cousins at cousins.in-newzealand.com
Fri Sep 26 23:48:01 CEST 2003


I'm also trying to work out how to use rewrite - so far I have managed to 
get simulateStaticDocuments to work using the sample .htaccess file 
supplied - now I want to set up a second (and more) site using the same 
install and database but am puzzled about how to rewrite in the way I want to.

I have (in this case) various sites on a shared server - I am porting them 
over to typo as and when time allows. Each site resides under 
/var/www/name_of_domain.com - for example, 
/var/www/nzmvc.in-newzealand.com/htdocs is the root of the nzmvc site. 
However I have set up Typo under /var/www/toysnz.com/htdocs/Typoserver/ - 
the source files are elsewhere on the server under /var/lib/

In this install I have a test site for toysnz.com reached by 
http://toysnz.com/Typoserver/index.php?id=1. I also have one for nzmvc 
reached via http://toysnz.com/Typoserver/index.php?id=23.

_IF_ I understand things I should be able to redirect 
nzmvc.in-newzealand.com to toysnz.com/Typoserver/index.php and rewrite the 
url to nzmvc.in-newzealand.com/23.html (simstaticdocs installed and 
working) - am I correct?.... and if so how would I set up the rewrite rule 
to strip the toysnz stuff and replace it with nzmvc stuff.

Unfortunately - on this shared server I do not have access to httpd.conf, 
etc otherwise I'd set them up so that the virtualhost info pointed straight 
to the relevant id=nn - but would I still have to work out how to rewrite 
the url?

Ian


At 16:58 28/08/2003 +0200, you wrote:
>Dear Quentin,
>
> > Has anyone got modrewrite working [search engine friendly urls/
> > simulateStaticDocuments] if so can they tell me how please? so far i have
> > multiple sites running off of the debian-typo3 install located at:
> > /var/lib/typo3/typo3_src-3.5.0/typo3/
>
>Where are your sites located? Are you sure they are in /var/lib/typo3/...?
>Normally, this is just the source. The rest of the installation (i.e. the
>real site) is located somewhere else.
>
>So you will simply need to add an .htaccess file containing the text you
>wrote in your last mail. Add this into your site directory and you're done
>(make sure that you have set the AllowOverrides directive to "all").
>
>Cheers - michael
>_______________________________________________
>Typo3-debian mailing list
>Typo3-debian at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-debian





More information about the TYPO3-debian mailing list