Pretty URLS -- BlueHost -- I Know Again

Permalink
OK, I know there are tons of postings on pretty URL's I have searched and read and continue to hit a brick wall. I use BlueHost and have called and they told me they can not help!

I enabled Pretty URLS and added this code to my .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

# Use PHP5CGI as default
AddHandler fcgid-script .php

Have also tried moving the PHP5CGI script to the top.


I have also tried editing my php request file as follows:

public static function get() {
static $req;
if (!isset($req) || C5_ENVIRONMENT_ONLY) {
$path = false;
if (defined('SERVER_PATH_VARIABLE')) {
$path = Request::parsePathFromRequest(SERVER_PATH_VARIABLE);
}/*
if (!$path) {
$path = Request::parsePathFromRequest('ORIG_PATH_INFO');
}*/
if (!$path) {
$path = Request::parsePathFromRequest('REDIRECT_URL');
}
if (!$path) {
$path = Request::parsePathFromRequest('PATH_INFO');
}/*
if (!$path) {
$path = Request::parsePathFromRequest('REQUEST_URI');
}*/
if (!$path) {
$path = Request::parsePathFromRequest('SCRIPT_NAME');
}

$req = new Request($path);
}

I have refreshed the data base and cleared the cache until my fingers hurt.

The php.index is removed from the URLs, but going to page not found, a BlueHost page etc, etc. Only goes to the home page and I can get into the dashboard and that's it. Have tried and undid and tried again on 5 sites all tied to my primary as well as my primary.

Know there has got to be a way, I just have not been able to find it. Any help....please...would be greatly appreciated.

MrGrowBizz
 
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Sure could use some help on this, have continued to try to get the pretty URLs to work. Have found that C5 adds the .htaccess file for my addon domains giving me 2 .htaccess files per domain since I have one under the primary. Have deleted the one for the addon, and vise-versa with the same result. Also tried adding Options +FollowSymlinks. Have opened a ticket with Blue Host, with the second response telling me the site works, of course it did as I had the pretty URLs disabled. I know there has got to be a solution somewhere, I just can't seem to find it!
numberonebestsupertech replied on at Permalink Reply
Most hosting companies do not do programming, even though they might have programmers for their own in-house programs. They generally leave web site programming to dedicate, paid programmers, and encourage web site owners to contact those paid programmers. So, trying to use a web hosting company for "programming" questions usually results in what you experienced.

However, the internet is great for looking for "free" help from well-meaning others with similar problems. I did an internet search for you and this link looks pretty good, or you can search yourself: http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pr...
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
Understand your point, however after spending hours upon hours on research and edits, believe I have done what is externally possible. As I understand it if the Apache Server will not allow htaccess rewrites they will need to change it. One the other hand, I do hope I am missing something. Many have wrestled with pretty URLS and most find a combination of something or another to fix. Looking for that combination. Thanks for your offering support!
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
OK, was finally able to get Pretty URLS on BlueHost to work through exhaustive research in the forum and elsewhere. Added the Options +FollowSymLinks script and omitted <IfModule mod_rewrite.c> & </IfModule> in the htaccess file.

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$1 [L]

Also added the redirect script to the request.php file.

if (!$path) {
$path = Request::parsePathFromRequest('REDIRECT_URL');
}

Also added define('URL_REWRITING_ALL', true); to the config/site.php file.

However, the omission of index.php is sometimes inconsistent, on some pages absent all the time, on others sometimes, sometimes not, with the Home page being the most inconsistent.