Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Htaccess file redirection problem

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #250998
    tallaramesh
    Participant

    This is my current url : http://localhost:8080/Development/74/catalog/200635370950414
    /119130766530475/Sell+products

    i want redirect to
    http://localhost:8080/Development/74/catalog/43466934896762
    /119130766530475/Sell+products

    but the result result is :

    http://localhost:8080/Development/74/catalog/200635370950414
    /119130766530475/catalog/43466934896762/119130766530475
    /Sell+products

    Please help me how to redirect to dynamic query string parameter.

    Below is my htaccess file:

    RewriteEngine On
    RewriteBase /

    RewriteCond %{QUERY_STRING} .
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* /? [R=301,L]

    RewriteRule ^index/$ /index.php [NC,L]
    RewriteRule ^aboutus/$ /aboutus.php [NC,L]
    RewriteRule ^offers/$ /offers.php [NC,L]
    RewriteRule ^gallery/$ /gallery.php [NC,L]
    RewriteRule ^blog/$ /blog.php [NC,L]
    RewriteRule ^contact/$ /contact.php [NC,L]

    RewriteRule ^catalog/([0-9]+)/([0-9]+)/([A-Za-z0-9-]+)$ /catalog.php?catid=$1&id=$2&n=$3 [L,R=301,QSD]

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.