SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member luemob's Avatar
    Join Date
    Jan 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Htaccess and rss feed configuration

    Can anyone provide some insight as to how to write out a redirect htaccess file that will not conflict the rss feed of that particular site. For example, I am trying to have the main index.php (simple machines forums site) page to be directed to another site that offers self hosting. Example ning. In turn, I would like to use the rss feed of the simple machines forum on the ning site to redirect the visitor back to the simple machines forum.

    htaccess example:
    Redirect /bbs/index.php http://xxx.ning.com/

    when i create the file, it will redirect correctly but then the rss feed that I use on the ning to redirect back to the forum will not work, it will list the rss feed of the ning site.

    any suggestions or advice would be appreciated.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    luemob,

    Using mod_alias (Redirect), you're merely sending the bbs/index.php file to xxx.ning.com, i.e., nothing else should be affected.

    mod_rewrite gives you the power of regex so, if you need more from your .htaccess redirections, look into using that (the tutorial Article linked in my signature will help). Just be cautious as it looks like you're trying to create a loop between your two domains.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •