Davidkemp123 Posted June 26, 2011 Share Posted June 26, 2011 hi guys, just trying to figure out how to have my index.php load when i type the url into the browser, i want the index.php within its own cms folder within public_html and i need to set the .htaccess file to find the index.php file and load it when the url is typed into the browser. Could someone please give me example code or what commands i need to use to direct my url to connect to my index.php cheers! Quote Link to comment https://forums.phpfreaks.com/topic/240481-how-to-set-the-htaccess-file-to-connect-url-with-indexphp/ Share on other sites More sharing options...
Davie33 Posted June 27, 2011 Share Posted June 27, 2011 Hi there this here is a sample for showing index.php. RewriteRule page-(.*)\.html$ index.php?act=$1 index.php is within public_html hope this helps. Quote Link to comment https://forums.phpfreaks.com/topic/240481-how-to-set-the-htaccess-file-to-connect-url-with-indexphp/#findComment-1235193 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.