www.webdeveloper.com
Results 1 to 3 of 3

Thread: I need help with this htaccess rewrite rule

  1. #1
    Join Date
    Mar 2010
    Posts
    701

    I need help with this htaccess rewrite rule

    Code:
    RewriteEngine On
    RewriteRule ^http:\/\/(www\.)?xn--zhq692d06i\.net(.*)$ http://linksku.com/idn/56/viewforum.php?f=7&$2
    I have a domain xn--zhq692d06i.net and linksku.com. The files for xn--zhq692d06i.net are actually at http://linksku.com/idn/adirectory, my host configured the server to make it work. However, I want to make xn--zhq692d06i.net use the files from http://linksku.com/idn/56/

    For example, if a users goes to http://xn--zhq692d06i.net/t=2, I want http://linksku.com/idn/56/viewforum.php?f=7&t=2 to be displayed.
    Last edited by narutodude000; 01-15-2011 at 12:18 AM.

  2. #2
    Join Date
    Mar 2010
    Posts
    701
    Another problem. When I was playing around with htaccess to try and get this working, I noticed that sometimes the rewriterule redirects the page, instead of simple loading a different file, while keeping the URL as-is. How can I prevent it from redirecting?

  3. #3
    Join Date
    Mar 2010
    Posts
    701
    Nevermind, I think I misunderstood everything about htaccess when I asked this question.

    Now I have a new question, how does WordPress maintain the URL as a "pretty URL" even though a different file is loaded with htaccess? I want to do something similar.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles