Craft Posted January 22, 2020 Share Posted January 22, 2020 I would like to remove "contact.php" page from my website and forward any visitor to "submitticket.php" Any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 22, 2020 Share Posted January 22, 2020 Use the following .htaccess rule. Redirect 301 "/contact.php" "/submitticket.php" 0 Quote Link to comment Share on other sites More sharing options...
Craft Posted January 23, 2020 Author Share Posted January 23, 2020 22 minutes ago, Kian said: Use the following .htaccess rule. Redirect 301 "/contact.php" "/submitticket.php" Is there any other way not related to .htaccess file? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 23, 2020 Share Posted January 23, 2020 Action hook. <?php add_hook('ClientAreaPageContact', 1, function($vars) { header('Location: submitticket.php'); die(); }); 1 Quote Link to comment Share on other sites More sharing options...
Craft Posted January 23, 2020 Author Share Posted January 23, 2020 10 minutes ago, Kian said: Action hook. <?php add_hook('ClientAreaPageContact', 1, function($vars) { header('Location: submitticket.php'); die(); }); Perfect, thank you :) 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 23, 2020 Share Posted January 23, 2020 (edited) One thing to note is that WHMCS will redirect from contact.php to submitticket.php (your specific department) if you select a ticket department under WHMCS admin > setup > general settings > mail > Presales Form Destination Edited January 23, 2020 by zomex 3 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 23, 2020 Share Posted January 23, 2020 34 minutes ago, zomex said: One thing to note that is WHMCS will redirect from contact.php to submitticket.php (your specific department) if you select a ticket department under WHMCS admin > setup > general settings > mail > Presales Form Destination I was just about to suggest the same thing. 🙂 3 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 23, 2020 Share Posted January 23, 2020 55 minutes ago, zomex said: One thing to note is that WHMCS will redirect from contact.php to submitticket.php (your specific department) if you select a ticket department under WHMCS admin > setup > general settings > mail > Presales Form Destination Bah... I don't get why I keep over complicating things. It's like when I bought an expensive switch because bandwidth was stuck at 100Mbps... I was using a Cat5 cable 😑 now my mom has a gigabit managed fiber switch 😕 1 Quote Link to comment Share on other sites More sharing options...
Craft Posted January 23, 2020 Author Share Posted January 23, 2020 4 hours ago, zomex said: One thing to note is that WHMCS will redirect from contact.php to submitticket.php (your specific department) if you select a ticket department under WHMCS admin > setup > general settings > mail > Presales Form Destination 3 hours ago, brian! said: I was just about to suggest the same thing. 🙂 Yea that's much better .. thank you guys :) 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.