Forum Moderators: phranque
# GETTING RSS FILE BY PAGE NUMBER
# http://villarentfethiye.simpg.net/rss-feed-5.xml
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^[\.0-9,:\/-a-z]+rss_feed-([0-9]+)\.xml$ http://simpg.net/rss_feed.php?rss=$1 [NC,QSA,L]
# GETTING SUPPORT PAGE BY PAGE NO
# http://some-name.simpg.net/greatest-gadget/p1.html
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^[\.0-9,:\/-a-z]+-p([0-9]+)\.html$ http://simpg.net/info.php?p=$1 [NC,QSA,L]
# GETTING RSS FILE BY PAGE NUMBER
# http://villarentfethiye.example.com/rss_feed-5.xml
RewriteCond %{HTTP_HOST} ^(.+).example.com$ [NC]
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^[\.0-9,:\/-a-z]+rss_feed-([0-9]+)\.xml$ http://example.com/rss_feed.php?rss=$1 [NC,QSA,L]
# GETTING SUPPORT PAGE BY PAGE NO
# http://some-name.example.com/greatest-gadget/p1.html
RewriteCond %{HTTP_HOST} ^(.+).example.com$ [NC]
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^[\.0-9,:\/-a-z]+-p([0-9]+)\.html$ http://example.com/info.php?p=$1 [NC,QSA,L]