Good day friends! There is an address http: //test1.go/index.php? Id = 46 How to fix htaccess to open http: //test1.go/46

?? Please tell me, I only know how to remove index.php

    1 answer 1

    So here :)

    RewriteRule ^([0-9]+)/?$ index.php?id=$1 [L] 
    • It does not work, I have redirected e - TomasRedl
    • It does not work, I have been redirected from the main page to the header ("Location: /index.php?id=$id_session"); - TomasRedl
    • So direct not to the header("Location: /index.php?id=$id_session") , but to the header("Location: /$id_session") . I do not see the problem - Yuri
    • Now it redirects, but the site pages are not loaded, the redirection goes correctly to the address test1.go / 46 - TomasRedl
    • Accurately RewriteRule ^ ([0-9] +) /? $ Index.php? Id = & $ 1 [L] ??? - TomasRedl