Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 434155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:14:43+00:00 2026-05-12T20:14:43+00:00

I am updating an old asp site to cakephp – the old site has

  • 0

I am updating an old asp site to cakephp – the old site has various listings on google based on the old “filename.asp” urls – I’d like to put Redirect 301s in the htaccess file to try and hang on to those search results (most of the pages have a complementing page on the new site), but something appears to be going wrong. htaccess as follows (excluding standard cake stuff). What am I doing wrong?

Redirect 301 contact.asp /contact    
Redirect 301 portfolio.asp /portfolio-design-web    
Redirect 301 webhosting.asp /

I’ve tried with the htaccess in the root directory, and webroot but it should just work wherever, no?

—

fixed it using mod_rewrite, following rules inside .htaccess on webroot work:

RewriteRule ^contact.asp$ /contactos/ [R=301,L]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:14:44+00:00Added an answer on May 12, 2026 at 8:14 pm

    Try modifying app/webroot/.htaccess like so:

    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        RewriteRule ^contact.asp$    /contact              [R=301,L] 
        RewriteRule ^portfolio.asp$  /portfolio-design-web [R=301,L] 
        RewriteRule ^webhosting.asp$ /                     [R=301,L] 
    
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    </IfModule>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Updating an old ASP/Access site for a client - I need SQL to add
I'm updating an old ASP/MySql webapp to ASP.NET/MS SQL. We would like to keep
I'm updating some old code that has several POD structs that were getting zero'd
We are updating an old .net 1.1 website to 2.0. The site currently supports
I'm working on updating an old site and I ran into the following simple,
I'm working on updating an old app. It has some dependency files that live
I'm updating some old Managed C++ code with lines like this: instanceOfEventSource->add_OnMyEvent( new EventSource::MyEventHandlerDelegate(this,
Updating an old piece of software but in order to maintain backward compatibility I
I'm updating an old project, and I'm wondering whether I should remove some objects
I'm in the process of updating some old CSS files in our systems, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.