Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    2
    Member #
    52767

    301 redirect from asp to php but also with file name change

    First post here. Hello...

    ...anyway...

    I have a site (fairly small one) that I inherited. The client asked to convert the site from .asp to .php, which has been done. However, the site pages have also been renamed.

    The site is up but I would like to redirect visitors from the .asp version of the page to the .php along with the page's new name. I have created an .htaccess file but when I upload it, it breaks the site. I'd like to know what I'm doing wrong.

    Each entry looks something like this:

    Code:
    RewriteEngine on
    Redirect 301 /maintenance.aspx http://www.sample.com/maintenance_projects.php
    The RewriteEngine on is inserted only once, at the top. Only about 16 pages in the site but this is driving me nuts. Thank you in advance.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    Are you using .htaccess ?


  4. #3
    Junior Member
    Join Date
    Dec 2015
    Posts
    2
    Member #
    52767
    Quote Originally Posted by mlseim View Post
    Are you using .htaccess ?
    Thank you for replying. Yes, I am.

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    Sorry I didn't see the .htaccess in your first post ... I'm old and that's my excuse.

    There is another guy on here who knows ASP. We'll see if he answers.



Remove Ads

Posting Permissions

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

Tags for this Thread

All times are GMT -6. The time now is 05:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com