www.webdeveloper.com
Results 1 to 2 of 2

Thread: htaccess help url rewrite

  1. #1
    Join Date
    Feb 2009
    Posts
    33

    htaccess help url rewrite

    I need help with url rewrite. Running Apache linux

    I need to direct the following two urls

    http://www.donateingham.org/icac
    http://donateingham.org/icac

    to

    https://www.donateingham.org/icac

    any ideas, everything i have tried doesn't work
    Last edited by JohnBampton; 08-22-2009 at 05:27 AM.

  2. #2
    Join Date
    Jun 2009
    Posts
    127
    Hi,

    Have a check with this code:

    RewriteEngine on
    rewritecond %{http_host} ^http://www.donateingham.org/icac [nc]

    Make sure that Apache Mod-Rewrite module is enabled on the server.

    rewritecond %{http_host} ^http://donateingham.org/icac [nc]
    rewriterule ^(.*)$ https://www.donateingham.org/icac [r=301,nc]

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