Am trying to set up ‘pretty urls’ (or short urls) using htaccess and php. Have found several sites on the topic, but fail to have success - clearly I’m not understanding. Any direction would be much appreciated. My site is pretty simple. All pages are included at index.php, so urls look like: http://website.com/index.php?page=pagename.
My goal is for urls to display: http://website.com/pagename
Index files contains this:
<?php $request = str_replace("", "", $_SERVER['REQUEST_URI']); $params = split("/", $request); ?>HTACCESS file contains this:
#Options +FollowSymLinks
#RewriteEngine On
#RewriteCond %{SCRIPT_FILENAME} !-d
#RewriteCond %{SCRIPT_FILENAME} !-f
#RewriteRule ^.*$ ./index.php