Skip to main content

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! Those type of URLs indicate there is some application (Wordpress, Joomla, etc.) running on the site, so it might be better to see if the URLs can be fixed or adjusted directly in the app than to try and manipulate them with .htaccess.
    0
  • cableguysteve
    Hi there Thanks for the message, Unfortualty the old URL came from FoxPro and it is no longer available. The new URL is straight HTML. Is there anyway to resolve this? If not i am going to have to rewrite 1.9 million MYSQL lines to resolve. Thanks Steve
    0
  • cPRex Jurassic Moderator
    I don't claim to be a .htaccess wizard, but there likely isn't going to be one rule that will handle this at it may need to be a combination of things. What about something similar to the following?
    0
  • cableguysteve
    Thanks for the assist in this. I am reviewing the link and hopefully can resolve the issue. Thanks Steve
    0
  • George_Fusioned
    Hello, if you put something like that in your .htaccess at my-site.com it should do what you want: RewriteEngine On RewriteCond %{REQUEST_URI} ^/view$ RewriteCond %{QUERY_STRING} ^id=([0-9]*)$ RewriteRule ^(.*)$ https://my-site.ca/search-item.html?psid=%1 [R=302,L]
    0

Please sign in to leave a comment.