skip to Main Content

I have converted a site from .asp to .php pages

now I need to redirect many old .asp pages to the home page

the structure of the .asp URLs is:

/dettagli.asp?ID=123456789

I would like any /dettagli.asp page to be redirected to the home page, regardless of the parameter which is passed (these ages no longer exist…)
I have tried some regex so far but no luck….

2

Answers


  1. Chosen as BEST ANSWER

    Solved. I simply was using rules AFTER Joomla Rules that were applied BEFORE mine...


  2. You can use this rule as your very first rule:

    RewriteEngine On
    
    RewriteRule ^dettagli.asp$ /? [L,R=302]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search