www.webdeveloper.com
Results 1 to 2 of 2

Thread: htaccess question

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    104

    htaccess question

    Hi all,

    I'm new to .htaccess files. Some help would be great if poss - thanks.

    I need to redirect my entire site to a new domain, EXCEPT for a few files and one directory.

    I can work out how NOT to redirect one particular directory, but how do I not redirect a number of files in the root directory?

    (If it helps, what I am specifically trying to do is redirect a site running wordpress, but I still require access to the wordpress admin area for the original site).

    Any help would really be much appreciated!

    Many thanks,

    Rob.

  2. #2
    Join Date
    Aug 2012
    Posts
    11
    Quote Originally Posted by nightster View Post
    Hi all,

    I'm new to .htaccess files. Some help would be great if poss - thanks.

    I need to redirect my entire site to a new domain, EXCEPT for a few files and one directory.

    I can work out how NOT to redirect one particular directory, but how do I not redirect a number of files in the root directory?

    (If it helps, what I am specifically trying to do is redirect a site running wordpress, but I still require access to the wordpress admin area for the original site).

    Any help would really be much appreciated!




    Many thanks,

    Rob.
    You have to use same syntax for each file

    like,
    redirect 301 / http://www.new domain.com/

    to the .htaccess file at the top.

    i hope it will useful to you.

    http://www.viteb.com/website-development

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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