Page 1 of 1

RESOLVED - URL Issue - driving me mad.

Posted: Sun Jul 27, 2008 5:24 pm
by bazzlad
Hey all,
I've made my site, uploaded everything it needs and it's looking good.

Slight problem though, the pages are coming up as:

http://www.MYWEBSITE.com/index.php/example.html

I can't find where the index.php is coming from and how to stop it!

I want:
http://www.MYWEBSITE.com/example.html

Any ideas?

Re: URL Issue - driving me mad.

Posted: Sun Jul 27, 2008 7:42 pm
by mel

Re: URL Issue - driving me mad.

Posted: Tue Jul 29, 2008 9:21 pm
by bazzlad
With due respect, that was the first thing I did - any idea for my specific problem?

Re: URL Issue - driving me mad.

Posted: Tue Jul 29, 2008 9:48 pm
by baresi
Perhaps post your config file, minus passwords and the like of course

Re: URL Issue - driving me mad.

Posted: Wed Jul 30, 2008 1:20 am
by Dr.CSS
Are you using the .htaccess file, and do you have it set to use in the config.php?...

Re: URL Issue - driving me mad.

Posted: Wed Jul 30, 2008 12:26 pm
by bazzlad
baresi wrote: Perhaps post your config file, minus passwords and the like of course
Thanks for the idea here it is:

Code: Select all

#If app needs to coexist with other tables in the same db,
#put a prefix here.  e.g. "cms_"
$config['db_prefix'] = 'cms_';

#Use persistent connections?  They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;

#Use ADODB Lite?  This should be true in almost all cases.  Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.webaddress.com';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/home/user/public_html/webaddress';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/home/user/public_html/webaddress/tmp/cache';

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/home/user/public_html/webaddress/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';


#---------------
#Upload Settings
#---------------

#Maxium upload size (in bytes)?
$config['max_upload_size'] = 2000000;

#Permissions for uploaded files.  This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';

#------------------
#Usability Settings
#------------------

#Allow smarty {php} tags?  These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;

#CMSMS Debug Mode?  Turn it on to get a better error when you
#see {nocache} errors.
$config['debug'] = false;

#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;

#------------
#URL Settings
#------------

#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = true;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Anything?

Re: URL Issue - driving me mad.

Posted: Wed Jul 30, 2008 3:31 pm
by baresi
Looking at that I think the thing to check for now is what mark said, an .htaccess file that may be adding index.php to your redirects

Re: URL Issue - driving me mad.

Posted: Wed Jul 30, 2008 3:39 pm
by duclet
Set assume_mod_rewrite & use_hierarchy to true, and internal_pretty_urls to false. Also, make sure your .htaccess file handles things appropriately for the redirect.

Re: URL Issue - driving me mad.

Posted: Thu Jul 31, 2008 8:14 am
by bazzlad
duclet wrote: Set assume_mod_rewrite & use_hierarchy to true, and internal_pretty_urls to false. Also, make sure your .htaccess file handles things appropriately for the redirect.
Thanks mate, done and working. Shame as internal urls have always worked for me in the past.

Re: RESOLVED - URL Issue - driving me mad.

Posted: Thu Jul 31, 2008 7:56 pm
by Dr.CSS
But they have always had index.php/...