Viewing 3 replies - 1 through 3 (of 3 total)
  • Since this is an old-to-new move, this is often handled in .htaccess. That assumes your site is running under Apache (but that’s a fairly safe assumption) and has mod_alias installed (also highly likely).

    Look at the docs for RedirectMatch and RedirectPermanent. Just make sure to test your rules.

    Warning: Apache is very unforgiving of syntax errors in your .htaccess file. So immediately after you make a change to it, test your site. If you get a 500 error, back out the change or rename .htaccess to htaccess (ie. remove the leading ‘.’). Then you can ponder what you did wrong and try again. If you already have an existing .htaccess file, make a backup copy before playing with it.

    Thread Starter muaddib77

    (@muaddib77)

    Hi,

    Thanks for kind help. I tried to modify .htaccess file and wrote this syntax. I can’t find where did i wrong. .htaccess does not seem to work.

    Regards,
    ——————————-

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} myvar1=(.*)
    RewriteCond %{QUERY_STRING} myvar2=(.*)
    RewriteCond %{QUERY_STRING} myvar3=(.*)
    RewriteRule ^index.php?module=contact(.*) /contact/%1/%2/%3 [QSA]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Did you ever get a fix for this..

    I have a URL

    https://ulistic-projects.com/forza/pagSupport.aspx?machine=joe-gateway-pc.forza&group=forza

    that is need to forward to a Windows server and retain the parameters

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can i get url parameters from redirection’ is closed to new replies.