htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Redirect based on URL Address
PostPosted: 20 Sep 2008 20:18 
Offline

Joined: 26 Aug 2007 03:47
Posts: 2
I don't think this is possible, but we'll try it anyway.

I have several sites coming from one directory, but their content is unique due to database actions.

The hard part is making the sitemap.xml unique for each of them. There are a couple ways to do this, right now I am trying to avoid making XML read PHP, which I'm about to do in a second as a hopefully temporary solution.

What I want it to do is something like this:

RewriteRule ^sitemap.xml$ /domains/%%DOMAIN_NAME%%/sitemap.xml [L,R=301]

The problem is is how to get the %%DOMAIN_NAME%% (I just threw that in there to let it be known it's a variable, is that possible?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB