This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Simple Rewrite- very simple
Author
Message |
linkwavescom
Groupie


Joined: 28 March 2006
Location: United States
Posts: 52
Posted: 24 June 2010 at 10:55am

I have this link
Example 1
http://www.xxxx.com/sitemap.xml?page=1
http://www.xxxx.com/sitemap.xml?page=2

I made our site output as
http://www.xxxx.com/sitemap.xml/sitemap1
http://www.xxxx.com/sitemap.xml/sitemap2

====================================

Example 2
I have this link
http://www.xxxx.com/sitemap.xml?page=1
http://www.xxxx.com/sitemap.xml?page=2

I made our site output as
http://www.xxxx.com/sitemap_1.xml
http://www.xxxx.com/sitemap_2.xml
====================================

Can you show me the both command to rewrite
Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 24 June 2010 at 12:30pm

Hello,
Please try the following code:
Code:
RewriteEngine on
RewriteBase /

RewriteRule ^sitemap\.xml/sitemap(\d+)/?$ /sitemap.xml?page=$1 [NC,L]
RewriteRule ^sitemap_(\d+)\.xml$ /sitemap.xml?page=$1 [NC,L]


__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version