Author Topic: [SOLVED] How to remove '/index.php/' from URLs  (Read 14787 times)

0 Members and 1 Guest are viewing this topic.

Offline bodimon

[SOLVED] How to remove '/index.php/' from URLs
« on: 16. June 2009, 22:43:12 »
See: accepted solution

 php 5.2.6
sobi2 rc2.9.2.1
joomla 1.5.11
mysql 4.1.25
sobisef rc 1.3

I've installed the newest version of Sobi2 and newest sobisef.  After running sobisef, I see that links to my listing have a '/index.php/' in the URL such as http://site.com/index.php/name/category/item.  This does not appear within manage sef urls so this doesn't look like a sobisef problem.  I would like for the /index.php/ not to appear so that the URL looks like http://site.com/name/category/item.  Would anyone know where I can change this?

Thanks!

 See: accepted solution
« Last Edit: 08. October 2010, 22:05:59 by aboututila »
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline amorosso

Re: how to remove /index.php/ from URLs ??
« Reply #1 on: 16. June 2009, 23:45:41 »
To my understanding that is all controlled via your htaccess file and the way your sef com. writes it. I use sh404sef and that has it as a option
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline Robert_Vining

  • SOBI Team
  • Moderator
  • Sobi Hero
  • *
  • Posts: 1406
  • SobiPro is a free download!
  • Reviews:

    What is it?

    • Sobi Team Member
[SOLUTION] how to remove /index.php/ from URLs ??
« Reply #2 on: 17. June 2009, 00:25:55 »
If using the standard Joomla SEF, you need to rename your htaccess.txt file to .htaccess for this to be corrected.

This will need to be done with an FTP program more than likely, and I am talking about the htaccess.txt file that is in the root folder of your Joomla installation.

Also, be sure you have all 3 SEF options checked in the Global Configuration for Joomla.
Robert Vining
SobiPro Documentation and Support Team
NOW OPEN!>> | www.sobitemplates.com | Professional Sobi2 and SobiPro Templates
www.robertswebdesign.com - Joomla, Sobi2 and SobiPro Specialist
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sobi Templates

Offline bodimon

Re: how to remove /index.php/ from URLs ??
« Reply #3 on: 17. June 2009, 05:30:58 »
Thanks for the great suggestions and help!!  Since my .htaccess was already renamed from htaccess.txt, I just had to change the 'use apache mod_rewrite' setting to yes under the global configuration.  My seo friendly urls was already set to yes.  After saving, just refreshed the page and it worked!!  Thanks so much again!
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline kleinbaas

Re: [SOLVED] how to remove /index.php/ from URLs ??
« Reply #4 on: 06. March 2010, 19:10:51 »
Didnt work for me at first (on http://www.searchourworld.com), but there was something wrong with my .htaccess code. I coped the code from another site, (http://www.set8.net) which worked.

See below for the code in the working .htaccess (just change "set8.net" for your site's URL).

##  Can be commented out if causes errors.
Options +FollowSymLinks

#  mod_rewrite in use

RewriteEngine On

# Rule for duplicate content removal : www.domain.com vs domain.com
RewriteCond %{HTTP_HOST} ^set8.net [NC]
RewriteRule (.*) http://www.set8.net/$1 [R=301,L,NC]

########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

Hope this helps you (dont add this bit to .htaccess) :-)
Country: United Kingdom United Kingdom |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: MS Internet Explorer 7.0 MS Internet Explorer 7.0 | View Profile

Tags: