SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Threaded View

  1. #1
    SitePoint Wizard bbolte's Avatar
    Join Date
    Nov 2001
    The Central Plains
    0 Post(s)
    0 Thread(s)

    Question tricky rewrite problem and IE

    I have a Joomla site (so it has it's own rewrite rules) and in there I need to redirect a directory to a new domain. I've tried several different things: rewrite rules, meta refresh, etc. And either IE doesn't like it or the Joomla rules get in the way. Basically this is what I'm trying to do:

    redirect =>

    this is what I have so far, the last 2 lines are Joomla's:
    Redirect 301 /directory/
    RewriteCond %{HTTP_HOST} !$ [NC]
    RewriteRule ^(.*)$$1 [L,R=301]
    the problem is this, in IE it redirects to, which obviously causes a 404. I've tried the Redirect 301 several different ways, tried RedirectMatch as well, with about the same result. It works fine in FF or Chrome, but adds a trailing slash in IE.

    The other issue is for some reason, again in IE only, a meta refresh tag in an index page inside the directory gets caught up in the Joomla rewrite rule and doesn't forward on. Not sure if this means anything or not, but the subdomain is on a different Windows server than the main domain's Linux server.

    edit: Let me add, this is a request from my client, they want to do some direct mail with this URL since it's a little easier to type rather than the long subdomain URL.

    Any help would be much appreciated!
    Last edited by bbolte; Aug 17, 2012 at 06:52. Reason: adding description


Posting Permissions

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