SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2009
    Location
    Seattle
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to 301 a php file to a different page?

    I have a page like, register.php/ but when people click on that page i want it to take to a different page on a different url. How do i forward that in .htaccess files?

  2. #2
    SitePoint Evangelist priti's Avatar
    Join Date
    Aug 2006
    Location
    India
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    using rewrite rule

    RewriteEngine on
    RewriteRule ^old\.html$ new.html

  3. #3
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    RewriteEngine On
    RewriteRule register\.php mynewregister.php [R=301,L]


Bookmarks

Posting Permissions

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