Remove /index.php/ in SEF URL:s?

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Gotipe
Joomla! Intern
Joomla! Intern
Posts: 69
Joined: Fri Mar 21, 2008 12:13 pm

Remove /index.php/ in SEF URL:s?

Postby Gotipe » Mon Mar 24, 2008 2:14 pm

Hello. I wonder how to remove the /index.php/ in the search engine-friendly URL. I put on SEF URL:s and added suffixes but it seems as if every site or so is under index.php. How can it be that? I did make a search on the topic here but it was really hard to understand what you should do. :/
If you like Star Wars, you are very welcome to take a look at my SW website - http://www.galacticempire.se . ^^
Alla svenskar/norsker/dansker, gillar ni Star Wars/liker dere StarWars? Check the link above.
Signature rules: Literal URLs only!

Gotipe
Joomla! Intern
Joomla! Intern
Posts: 69
Joined: Fri Mar 21, 2008 12:13 pm

Re: Remove /index.php/ in SEF URL:s?

Postby Gotipe » Mon Mar 24, 2008 3:18 pm

Do I have to alter the configuration.php for doing this, I thought I found someone sayign that here.
If you like Star Wars, you are very welcome to take a look at my SW website - http://www.galacticempire.se . ^^
Alla svenskar/norsker/dansker, gillar ni Star Wars/liker dere StarWars? Check the link above.
Signature rules: Literal URLs only!

ajoom
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat May 03, 2008 8:16 pm

Re: Remove /index.php/ in SEF URL:s?

Postby ajoom » Sat May 03, 2008 8:43 pm

Hi,

I am also having the same problem..all the URLs are coming under index.php

for example the if the site default page is: http://www.abc.com/index.php

then all other URL's will be like this:
http://www.abc.com/index.php/catgegory-name1
http://www.abc.com/index.php/catgegory-name2
http://www.abc.com/index.php/catgegory-name3

But actually it should be

http://www.abc.com/catgegory-name1
http://www.abc.com/catgegory-name2
http://www.abc.com/catgegory-name3

The community at joomla has number of talented people who will provide a good fix for this and with that hope I eagerly await here

Thanks in advance.

Geoff
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3193
Joined: Sun Apr 16, 2006 12:20 am
Location: 127.0.0.1

Re: Remove /index.php/ in SEF URL:s?

Postby Geoff » Sat May 03, 2008 9:26 pm

mod note: moved to administration

In Global Configuration, did you set "Use Apache mod_rewrite" to yes? (and then subsequently rename htaccess.txt to .htaccess)
Backup, backup, backup!
The "Master" .htacess file by Nicholas http://snipt.net/nikosdion/the-master-htaccess

ajoom
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat May 03, 2008 8:16 pm

Re: Remove /index.php/ in SEF URL:s?

Postby ajoom » Mon May 05, 2008 4:39 am

Hi,

When I set "Use Apache mod_rewrite" to yes and also renamed htaccess.txt file to .htaccess, the result is all respective URL will be correct when we hover the mouse on it, but when u click and try to land on that page then it will say oops...page not found error.

So URL looks fine now but not able to understand why they are not opening.

Any other things that we should look into?

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14713
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: Remove /index.php/ in SEF URL:s?

Postby humvee » Mon May 05, 2008 10:09 am

possibly make sure var $live_site = '' is completed with your own site URL in the configuration.php file in joomla_root/ directory.

Andy

hsvjoomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu May 08, 2008 3:48 pm

Re: Remove /index.php/ in SEF URL:s?

Postby hsvjoomla » Thu May 08, 2008 4:01 pm

I am having the same problem and wondering if someone has a solution for this

my site is http://www.ashakiran.com/asha and you click and the links and they will fail but if I remove the index.php then it works fine. I have enabled the mod_rewrite and have renamed the htaccess.txt to .htaccess

Any solutions to this?

Geoff
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3193
Joined: Sun Apr 16, 2006 12:20 am
Location: 127.0.0.1

Re: Remove /index.php/ in SEF URL:s?

Postby Geoff » Sat May 10, 2008 7:42 am

hsvjoomla wrote:I am having the same problem and wondering if someone has a solution for this

my site is http://www.ashakiran.com/asha and you click and the links and they will fail but if I remove the index.php then it works fine. I have enabled the mod_rewrite and have renamed the htaccess.txt to .htaccess

Any solutions to this?

Looked fine to me.
Backup, backup, backup!
The "Master" .htacess file by Nicholas http://snipt.net/nikosdion/the-master-htaccess

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3290
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Remove /index.php/ in SEF URL:s?

Postby dextercowley » Sat May 10, 2008 11:53 pm

Hi. The site http://www.ashakiran.com/asha appears to be working as desired for me (no index.php). Mark
Mark Dexter
"Well...how did I get here?"

samraj321
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jul 02, 2008 3:56 am

Re: Remove /index.php/ in SEF URL:s?

Postby samraj321 » Wed Jul 09, 2008 8:35 am

Hi all,
http://www.secretvillasbali.com/index.php/booking-villa.html

This is my website and I cannot remove the index.php at all I have .htaccess on my root folder.
I have put the $livesite to my web URL.

Done every possible things that are on this forum.

Even I have tried all the combination of the configuration for SEF but no result.

When the URL is http://www.secretvillasbali.com/booking-villa.html it says
Not Found

I am using Joomla 1.5

Any help will be appreciated

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3290
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Remove /index.php/ in SEF URL:s?

Postby dextercowley » Wed Jul 09, 2008 4:40 pm

Hi. I don't know if this is related, but it looks like you might have a file "index.html" in your root directory. Is this by design? If not, you could try deleting this file. Hope this helps. Mark
Mark Dexter
"Well...how did I get here?"

samraj321
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jul 02, 2008 3:56 am

Re: Remove /index.php/ in SEF URL:s?

Postby samraj321 » Thu Jul 10, 2008 12:52 am

Thanks for the help
But that did not help me out.
It shows Not Found when
Image

This is my seo settings.

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3290
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Remove /index.php/ in SEF URL:s?

Postby dextercowley » Thu Jul 10, 2008 1:04 am

Hi. What are the contents of your .htaccess file? Mark
Mark Dexter
"Well...how did I get here?"

samraj321
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jul 02, 2008 3:56 am

Re: Remove /index.php/ in SEF URL:s?

Postby samraj321 » Thu Jul 10, 2008 1:07 am

Oh that may be the problem
I have nothing in the .htaccess file
Its blank
Can you just suggest what should I put inside it

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3290
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Remove /index.php/ in SEF URL:s?

Postby dextercowley » Thu Jul 10, 2008 1:14 am

Hi. I think it's supposed to be the contents of the htaccess.txt file that installs in your home directory. So just find a copy of that file, rename it to .htaccess, and maybe that will fix your problem. Mark
Mark Dexter
"Well...how did I get here?"

samraj321
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jul 02, 2008 3:56 am

Re: Remove /index.php/ in SEF URL:s?

Postby samraj321 » Thu Jul 10, 2008 1:26 am

Hi Mark,
I don't have any htaccess.txt file.
How can I get it and when I checked with other website with the same host company it didn't had the htaccess.txt either.
Can you just send me the code for the htaccess
Samir

samraj321
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jul 02, 2008 3:56 am

Re: Remove /index.php/ in SEF URL:s?

Postby samraj321 » Thu Jul 10, 2008 1:41 am

Hi Mark,
It worked, I was doing this for more than a week.
But you saved my life mate.
I just read this post:

http://forum.joomla.org/viewtopic.php?f=432&t=304366

and when I paste the code there in my .htaccess it worked fine.

You are gr8 man.

Thanks a lot.

Samir

cbos
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 26, 2008 9:08 pm

Re: Remove /index.php/ in SEF URL:s?

Postby cbos » Wed Jul 16, 2008 1:14 am

I just wanted to add that I read the comments in this post, set all the SEO settings to Yes, changed htaccess.txt to .htaccess and everything worked wonderfully. Didn't have to change var $live_site = ''; It was empty. Am running Joomla 1.5.3. Thanks!

User avatar
smart.1
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Fri Sep 15, 2006 2:50 pm
Contact:

Re: Remove /index.php/ in SEF URL:s?

Postby smart.1 » Mon Jul 21, 2008 2:50 pm

Hi

I have just a small related problem: how can I exclude an url from being rewritten? More exactly, I found out that the SEO engine is braking my RSS/Atom syndication. The bare url (.../index.php?option=com_content&view=section&id=1&Itemid=46&lang=en&format=feed&type=rss) is working fine, but when I place it on the page and activate SEO, it gets distorted and does'n work anymore. I think I know how (edit .htaccess to omit "&format=feed&type=rss" from rewriting engine), but I'm not very good with these apache commands. Can anyone help me with this?

Thanks

User avatar
zenalien
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Apr 11, 2008 1:11 am
Contact:

Re: Remove /index.php/ in SEF URL:s?

Postby zenalien » Fri Jul 25, 2008 8:43 pm

If ever someone come back in this thread.. I would be also intersted in a solution to exclude rss links to be rewritten....
Tahiti Full Screen VR Panoramas
http://www.direct2brain.net

dbaileynz
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Nov 01, 2008 7:15 am
Location: New Zealand
Contact:

Re: Remove /index.php/ in SEF URL:s?

Postby dbaileynz » Sat Nov 15, 2008 1:37 am

I found this to be extremely helpful. It fixed all my problems.
http://extensions.siliana.com/en/sh404S ... ation.html

User avatar
frankzusa
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Mar 17, 2009 6:00 pm

Re: Remove /index.php/ in SEF URL:s?

Postby frankzusa » Mon Mar 23, 2009 1:40 pm

Thank lot, it works for my website! Cheer!

ksangha
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Oct 25, 2008 1:47 pm

Re: Remove /index.php/ in SEF URL:s?

Postby ksangha » Mon Mar 23, 2009 4:50 pm

thx for this

maniactive
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Dec 08, 2005 8:31 pm

Re: Remove /index.php/ in SEF URL:s?

Postby maniactive » Tue Apr 28, 2009 1:23 am

OK. I have all the same issues. index.php in every URL.

I have taken great care to follow all steps, 1 by 1.

No luck.

If I switch to .htaccess from htaccess.txt, the whole site goes down.

If I keep it at htaccess.txt, the site works -- but I get the infernal index.php in every dang url!

Is there another fix for this? It's got to something simpler!

Vexing.

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3290
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Remove /index.php/ in SEF URL:s?

Postby dextercowley » Tue Apr 28, 2009 1:54 am

Hi. Is this a hosted site or a local site? You need to have the mod_rewrite service enabled in your Apache server. If you are running locally, I think you need to uncomment the line in the file C:\xampp\apache\conf\httpd.conf (on my Windows system) that reads: LoadModule rewrite_module modules/mod_rewrite.so.

If this is hosted, you need to find out with your host how to enable this module.

Hope this helps. Mark
Mark Dexter
"Well...how did I get here?"

maniactive
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Dec 08, 2005 8:31 pm

Re: Remove /index.php/ in SEF URL:s?

Postby maniactive » Tue Apr 28, 2009 11:16 am

Hosted.

The thing is, I have 5 other Joomla! sites hosted on the server, no problems. The other Joomla! installations are 1.0 -- this is my first 1.5 on the server. Mod_rewrite is enabled.

So, yeah, the re-writes work no problem for earlier versions of Joomla.

The issue appears to be with 1.5. I'm stumped.

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3290
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Remove /index.php/ in SEF URL:s?

Postby dextercowley » Tue Apr 28, 2009 1:22 pm

Well, I can tell you that this works in 1.5 for people, and it works locally as well if you enable the module in Apache. So I don't know why it's not working for you, but I am pretty sure it is not an across-the-board Joomla 1.5 issue. Good luck getting it sorted out. Mark
Mark Dexter
"Well...how did I get here?"

maniactive
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Dec 08, 2005 8:31 pm

Re: Remove /index.php/ in SEF URL:s?

Postby maniactive » Tue Apr 28, 2009 3:08 pm

Well, the only solution that worked --

-- I took the .htaccess file from my Joomla 1.01 installations

...deleted the 1.5 .htaccess file. Replaced it with the old htaccess file from version 1.01.

Now it works.

User avatar
zooshh
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 25, 2009 9:24 am

Re: Remove /index.php/ in SEF URL:s?

Postby zooshh » Thu Jun 25, 2009 11:12 am

humvee wrote:possibly make sure var $live_site = '' is completed with your own site URL in the configuration.php file in joomla_root/ directory.

Andy


Im quite new to joomla also php . . Is it possable to show how this should look so i can copy it please ? Also im having no problems editing the txt files . but i cant edit the php file, Im using 1 & 1 web hosting

Thanks

DiveNSail
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Sep 21, 2009 3:46 am
Location: North America
Contact:

Re: Remove /index.php/ in SEF URL:s?

Postby DiveNSail » Mon Sep 21, 2009 3:57 am

Geoff wrote:In Global Configuration, did you set "Use Apache mod_rewrite" to yes? (and then subsequently rename htaccess.txt to .htaccess)


Thanks! It works just perfect.


Return to “Administration 1.5”

Who is online

Users browsing this forum: No registered users and 7 guests