We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5677
    • 4 Posts
    Hi!

    I what to make redirect 301 from /index.php?q=23 to /index.php=alias
    I’ve tried to manage it by myself with .htaccess, but failed.

    Can you give me a little bit help or some advise?
      • 33238
      • 388 Posts
      seem problem... some help one please!!!!
        --
        ysanmiguel.com
        • 33238
        • 388 Posts
        Solution is simple.

        just find this code inside .htaccess

        # For Friendly URLs
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
        


        Modify and paste this code over the code above.

        RewriteRule ^oldpage\.html$ http://www.samplepage.com/new page.html [L,NC,R=301]
        


        that is all.
        should look like this:

        RewriteRule ^oldpage\.html$ http://www.samplepage.com/new page.html [L,NC,R=301]
        
        # For Friendly URLs
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
        


        grin i hope this works!!!
          --
          ysanmiguel.com