+ Post New Thread
Results 1 to 2 of 2

Thread: .htaccess how redirect one page to another

  1. #1
    Fli
    Fli is online now
    Administrator Fli's Avatar
    Join Date
    Mar 2013
    Posts
    2,471

    .htaccess how redirect one page to another



    If you have one subpage and you wish to redirect all traffic to another page, you can use this code in .htaccess file


    redirect 301 /page.php http://domain.com/page.php
    Note that old page is only /page.php or page.php , not http://


    You can also use redirect htaccess generator like http://www.rapidtables.com/web/tools...-generator.htm
    There is whole domain redirect: http://internetlifeforum.com/editing...-domain-index/

  2. #2
    Junior Member John8's Avatar
    Join Date
    Nov 2013
    Posts
    10


    Is this useful / helpfull? Yes | No
    You can ADD this to your .htaccess and redirect non www to www... This will help your SEO because google will not be able to get duplicate cotent

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

+ Post New Thread

Similar Threads

  1. What method do you use to redirect a page?
    By gitanistone in forum SEO - Search Engine Optimisation
    Replies: 6
    Last Post: 11-08-2019, 04:58 AM
  2. How To Redirect Web Page ..?
    By indiaastro in forum SEO - Search Engine Optimisation
    Replies: 7
    Last Post: 08-01-2019, 08:12 AM
  3. Redirect HTTP to HTTPS .htaccess rule
    By Fli in forum HTML,CSS, Javascript Coding & Programming
    Replies: 0
    Last Post: 02-21-2017, 02:26 PM
  4. Replies: 0
    Last Post: 06-16-2015, 09:48 AM
  5. .htaccess redirect old domain subpages to new domain index
    By Fli in forum HTML,CSS, Javascript Coding & Programming
    Replies: 0
    Last Post: 03-21-2014, 02:24 PM

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
  •  
 Protected by : ZB BLOCK  &  StopForumSpam