RESOLVED - URL Issue - driving me mad.

General project discussion. NOT for help questions.
Post Reply
bazzlad
Forum Members
Forum Members
Posts: 20
Joined: Tue May 29, 2007 7:12 pm

RESOLVED - URL Issue - driving me mad.

Post 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?
Last edited by bazzlad on Thu Jul 31, 2008 8:14 am, edited 1 time in total.
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: URL Issue - driving me mad.

Post by mel »

Version 1.6-MLE
bazzlad
Forum Members
Forum Members
Posts: 20
Joined: Tue May 29, 2007 7:12 pm

Re: URL Issue - driving me mad.

Post by bazzlad »

With due respect, that was the first thing I did - any idea for my specific problem?
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: URL Issue - driving me mad.

Post by baresi »

Perhaps post your config file, minus passwords and the like of course
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: URL Issue - driving me mad.

Post by Dr.CSS »

Are you using the .htaccess file, and do you have it set to use in the config.php?...
bazzlad
Forum Members
Forum Members
Posts: 20
Joined: Tue May 29, 2007 7:12 pm

Re: URL Issue - driving me mad.

Post 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?
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: URL Issue - driving me mad.

Post 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
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: URL Issue - driving me mad.

Post 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.
bazzlad
Forum Members
Forum Members
Posts: 20
Joined: Tue May 29, 2007 7:12 pm

Re: URL Issue - driving me mad.

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: RESOLVED - URL Issue - driving me mad.

Post by Dr.CSS »

But they have always had index.php/...
Post Reply

Return to “General Discussion”