Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 5:53 pm (All times are UTC )

 


Forum rules

Global Rules
Additional Rules for this forum <------- Please read before posting



Post new topic Reply to topic  [ 127 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
Posted: Thu Feb 16, 2006 10:56 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2399
Location: Marikina, Metro Manila, Philippines
camos wrote:
I'm just a Windows guy so properly SEFed is out of my domain. ;)

Well thats not strictly true.

I develop locally on a WAMP (Windows Apache MySQL PHP) and I am able to turn SEF on or off.
All that is required is that your WAMP system has mod_rewrite and that you enter the correct path in your .htaccess file.

Of course for IIS this isnt a possibility, but just wanted to point out that SEF does work on a WAMP environment.

_________________
God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.


Top
  E-mail  
 
Posted: Thu Feb 16, 2006 11:03 pm 
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 2:39 am
Posts: 1035
Perhaps I should have said I am a WIMPy sort of guy then.

This fix was supposed to work on IIS as well and it sort of does just not completely or I made a misteak somewhere.

Cheers

_________________
Freedom is not free!
It is however Open Source.


Top
   
 
Posted: Thu Feb 16, 2006 11:14 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2399
Location: Marikina, Metro Manila, Philippines
camos wrote:
Perhaps I should have said I am a WIMPy sort of guy then.

Well if you really desperate I found IIS Rewrite (dont know anything about it though):

http://www.qwerksoft.com/products/iisrewrite/
http://www.qwerksoft.com/products/iisre ... tation.htm

_________________
God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.


Top
  E-mail  
 
Posted: Thu Feb 16, 2006 11:38 pm 
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 2:39 am
Posts: 1035
Not desperate at all, certainly not enough to spend US$200.00.  My Dev server is on IIS but all the sites I look after are on *nix.  Still, if the fix in this thread is supposed to work on IIS then it is likely I gobbed it up somewhere.  Don't really know if it does work properly so was hoping for some feedback rather than trying to guesstimate why mine wasn't working.

Thanks for the info though Rey,
Cheers

_________________
Freedom is not free!
It is however Open Source.


Top
   
 
Posted: Tue Feb 28, 2006 7:46 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Jan 28, 2006 12:00 am
Posts: 334
Great thread!

I managed to get the SEF urls working, except for when I click on the homepage link, I got 404'd out. http://www.mysite.com/index.php?/ doesn't exist.

Although, I think I'm going to stay non SEF until Joomla 1.1 is out. Do the links such as http://www.mysite.com/content/view/23 etc actually make any difference to search engine results? I only ask because words such as content, view and a couple of numbers don't seem to be that friendly.

If the urls were written to include the name of the section, category and then finish off with content_name.htm I think it would make a massive difference!!

ie. http://www.mysite.com/social/sports/angling_2006.htm

_________________
http://www.castus.co.uk


Top
  E-mail  
 
Posted: Wed Mar 01, 2006 9:22 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
well, from a google point of view, directories will be easier to crawl than dynamic files and in my opinion, they certainly work.

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
  E-mail  
 
Posted: Wed Mar 01, 2006 3:12 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Jan 28, 2006 12:00 am
Posts: 334
Do you have any ideas on why homepage doesn't link with the SEF hack?

The homepage links resolve to ..org.uk/index.php?/

rather than to ...org.uk/

Noe file can be found at ..org.uk/index.php?/ and I get the 404 message.

_________________
http://www.castus.co.uk


Top
  E-mail  
 
Posted: Sat Mar 04, 2006 8:08 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Feb 21, 2006 8:44 am
Posts: 2
Location: Norge
etilley wrote:
This thread got me out of a 2 week bind - so thanks very much!

To return the kindness, here is a very simple solution to adding categories, sections, product names, your pets names, and whatever else you want - to your SEF urls ... I could have queried the database and automatically filled in category, section_id, etc but this example keeps it simple.

In    includes\sef.php

Right before ... " if ($mosConfig_sef) { "

Add as many of these lines as you like.. I have replaced the standard SEF URL for "Contact Us" as a simple example that should work immediately for everyone...

$_SERVER['REQUEST_URI'] = str_replace( "Contact_Us", "component/option,com_contact/Itemid,3",$_SERVER['REQUEST_URI']) ;

and then down near the end of the file,

$string = str_replace( "component/option,com_contact/Itemid,3","Contact_Us",$string) ;

immediately before :

return $mosConfig_live_site."/index.php/".$string;  (note that I've incorporated websmurf's hack - soon to be implemented in 1.1)

The URL looks as follows:

http://www.yourwebsite.com/index.php/Contact_Us/

If you are wondering how I knew what to place in the "Contact_Us" string, I just clicked on "Contact Us" in the main menu and copy and pasted it here. So simple its gross and when I have more time, I can pull Category Names, Section Names, Products, etc from the database so it all works automatically.

If you don't want to have "index.php" in your url, just do what  DE  suggested above and add the following line into your .htaccess:

ErrorDocument 404 /index.php      -  now your URL is simply    http://www.yourwebsite.com/Contact_Us/

Now you can replace gobbley-gook URLs with very friendly human language for any link on your site.

Thanks again Websmurf - couldn't have done it without you.    (Why do I get the impression from these forums that no-one wants this solution found ? - Think I'll flip on "conspiracy theory" tonight, X-files?, ...)

Bon nuit et bon chance!

Ed


Fantastic solution Ed!

I support your "x-files-conspiracy-theory"  ;). Why isn't this implemented as a standard solution?
whispering:"...Could it be something to do with SEF advance, and lost business if the same functionallity is implemented as standard in Joomla/Mambo?.... :-\

PLEASE: If any one have an automated open source solution to this problem, please share!

CARPE DIEM!

(I will now go to bed with one eye open...)

Rgds,
Roy

_________________
----------------------------------------
CARPE DIEM! Dagen i dag kommer aldri igjen...

Microsoft, Oracle og Symantec Partner
www.norprovider.com


Top
  E-mail  
 
Posted: Sun Mar 12, 2006 1:04 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Jan 28, 2006 12:00 am
Posts: 334
castus wrote:
Do you have any ideas on why homepage doesn't link with the SEF hack?

The homepage links resolve to ..org.uk/index.php?/

rather than to ...org.uk/

Noe file can be found at ..org.uk/index.php?/ and I get the 404 message.


Anyone else have ths problem?

_________________
http://www.castus.co.uk


Top
  E-mail  
 
Posted: Thu Mar 16, 2006 12:04 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Mar 15, 2006 11:54 pm
Posts: 1
I have an error on login and unlogin buttons.
When I click them, there´s an error:

Bad Gateway
Web server received an invalid response while acting as a gateway or proxy server.


And on joomla 1.0.7, the sef mambot doesn´t works. The urls are the same publishing or unpublishing this mambot !!

Any solution??  :'(


Top
   
 
Posted: Thu Apr 20, 2006 5:19 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 5:40 pm
Posts: 317
Location: Toronto, Canada.
Hey Guys,

So its been a while since anyone's posted on this thread and I thought I'd check in about something:

How can I get rid of the /index.php/ in all my URLs using this IIS SEF work-around, and be able to use opensef?

q./

_________________
Qasim Virjee - Principal, Design Guru
http://www.whyjoomla.comhttp://www.plantseedling.com
(web production & joomla advocacy firm based in Toronto, Canada)


Top
  E-mail  
 
Posted: Wed May 10, 2006 3:57 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 01, 2005 1:33 pm
Posts: 17
Location: United Kingdom
stuclark wrote:
For IIS, you have to set the return string to be

return $mosConfig_live_site."index.php?/".$string;

If that doesn't work (you get http://www.mydomain.comindex.php?/component...) then set it to be

return $mosConfig_live_site."/index.php?/".$string;

You can see this method in action at http://www.sendosmartphones.com


Hi there Guys. I am a bit confused about this. :-\

My Joomla site is hosted on IIS server. It all works fine, apart from the SEF. I have altered the set.php file as suggested in the quote and I get what are supposed to be the friendly addresses, so that works. The only problem I have is what ever link I click, it always goes to the home page e.g. Frontpage.

I know I am missing something here, but could some one tell me what? What do I have to do now, so that the links go to the correct pages/content.

My site is www.rolfspukkaparts.com. I have the SEF turned off right now.

Do I have to change all the menu links and page addresses to get this to work?

Thank you for the help and I hope I am not asking a stupid question here  :D

_________________
New to all this, but willing to learn!


Top
  E-mail  
 
Posted: Tue Jun 20, 2006 9:51 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 30, 2006 10:55 am
Posts: 44
Hi,

Since this is related to and has some question about the proposed changes to have SEF work on IIS could you check the following post specially if you have been running the patch in a live environment:
http://forum.joomla.org/index.php/topic,70707.0.html


Top
  E-mail  
 
Posted: Thu Jun 22, 2006 10:58 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Feb 08, 2006 2:41 pm
Posts: 14
Websmurf wrote:
In continuation of the topic on the former forum:

i think i've found a rather simple way to avoid the mod_rewrite ability in order to use SEF urls

Apache
1. Enable SEF in mambo configuration
2. do NOT rename the htaccess.txt
3. open /includes/sef.php and change this line: (~ line 217)
return $mosConfig_live_site."/".$string;
to
return $mosConfig_live_site."/index.php/".$string;

For this to work, you will have to make sure AccepPathInfo is set to on in the apache configuration.

IIS
for IIS or if you can't get the above working use :
return $mosConfig_live_site."/index.php?".$string;

it could also be needed to add this to your sef.php
Code:
$_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);

// Append the query string if it exists and isn't null
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
  $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}

(just above this line
if ($mosConfig_sef) {
)

this will enable SEF urls to work without mod_rewrite at all..
and create urls like this:
http://www.tim-online.nl/index.php/content/view/9/34/
http://www.tim-online.nl/index.php/content/view/10/35/
http://www.tim-online.nl/index.php/component/option,com_docman/Itemid,78/

check www.tim-online.nl for an example..


Great Idea, Now Work at my server.
( This is the problem before: http://forum.joomla.org/index.php/topic,32369.0.html )

Thanks.

~msh!

_________________
-----------------------------------
http://www.kafka.web.id


Top
  E-mail  
 
Posted: Wed Jul 05, 2006 5:20 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jul 05, 2006 5:18 pm
Posts: 1
on version 1.08 just uncomment line 392  and comment line 386  as it says to do.


Top
  E-mail  
 
Posted: Fri Jul 07, 2006 1:57 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Oct 15, 2005 10:12 am
Posts: 32
Location: Bucharest
For 1.0.10 any solution, cant find what is posted on this thread for sef.php on Joomla 1.0.10


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 5:04 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 01, 2005 1:33 pm
Posts: 17
Location: United Kingdom
In Joomla 1.0.10, open Sef.php, comment out line 502 and then uncomment line 508 or 510, (which ever works for you).

I managed to get search engine friendly addresses working just fine with this.

Hope it works for you  :)

_________________
New to all this, but willing to learn!


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 8:31 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Oct 15, 2005 10:12 am
Posts: 32
Location: Bucharest
Bootcamp u are a joker ?? My sef.php on Joomla 1.0.10 have only 265  lines of code.

U sure about ur post ?


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 10:20 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 30, 2006 10:55 am
Posts: 44
grA$ wrote:
Bootcamp u are a joker ?? My sef.php on Joomla 1.0.10 have only 265  lines of code.
U sure about ur post ?


What kind of sef.php file are u using? Taken the file from Joomla 1.0.10

$ sed '$=' sef.php | wc -l
  545


Last edited by althoffm on Mon Jul 10, 2006 10:31 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Sat Jul 29, 2006 3:56 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jul 10, 2006 12:17 am
Posts: 25
I've tried eveything to get the SEF to work, without success. If someone can asisst, I would greatly appreciate any help.

Thanks!


Top
  E-mail  
 
Posted: Sat Aug 05, 2006 9:33 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 25, 2005 5:48 pm
Posts: 2801
Location: Geneva mostly
I've edited sef.php as indicated, activated sef in global config, and all is fine. Thanks.
What does "tried everything" mean?

_________________
Sometimes one pays most for the things one gets for nothing.
The important thing is not to stop questioning. Curiosity has its own reason for existing. AE
http://joomla15.blogspot.com for J! 1.5 screenshots
http://www.eyezberg.com


Top
  E-mail  
 
Posted: Tue Aug 08, 2006 6:23 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Aug 08, 2006 6:13 am
Posts: 1
I have managed to get this type of url to work: http://localhost/web/content/view/2/3/ with iis and joomla's sef instead of http://localhost/web/index.php?/content/view/2/3/

The settings I used were to change sef.php to

Code:
return $mosConfig_live_site .'/'. $string . $fragment;
(around line 505) and comment out all the alternatives.

Then you go to iis manager, click on properties for your virtual directory, go to custom errors and change the 404 setting to URL and /web/ or /web/index.php where "web" is your virtual directory


Top
  E-mail  
 
Posted: Sat Aug 26, 2006 2:55 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Jul 16, 2006 8:17 pm
Posts: 12
Hi there

Hello it works for the most part, but when I try and click onto any link generated from a Section / Category lister it now says:

You are not authorized to view this resource.
You need to login.

It seems the "List - Content Section" are especially terrible...

I also saw this line at the begining of the topic:
echo sefRelToAbs('index.php?option=com_mycomp&act=myact&task=mytask&Itemid=111');

Do i need to put that in, and if so, where?

PLEASE HELP!!


:(


Last edited by sydawn on Sun Aug 27, 2006 9:09 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Sep 18, 2006 7:59 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Aug 31, 2006 8:20 am
Posts: 3
Just a (snerk) quickie to report I had success with this in Joomla 1.0.10 under IIS 5.0.  Some helpful chap had already been into /includes/sef.php and around line 505 had already included the fix.  This is the line I had to uncomment:

Code:
return $mosConfig_live_site .'/index.php/'. $string . $fragment; //508


...and I didn't need that extra block of code up at the top of the file.  The other possibilities I tried either banjaxed the site completely or led to the 'not authorized to view this resource' error previously reported above, but this one was a winner.  Big thank you to websmurf and all concerned.

G

PS - sydawn, I had similar errors, it's worth trying all the possibilities of return $mosConfig_live_site .'/index.php etc etc.  The one that worked for me, above, is actually the one websmurf recommended for Apache, not IIS, so I'd recommend you to experiment a bit with this and see what you can get.

PPS - gra$ if your copy of sef.php only has ~260 lines of code for Joomla 1.0.10, then you've got an old copy by the sounds of it.  Did you upgrade from an earlier version of Joomla but this got missed out?  Anyway, my version, after a clean install, was 545 lines in length.  I'd say you oughta grab a clean copy.


Top
  E-mail  
 
Posted: Wed Sep 20, 2006 2:54 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Sep 09, 2006 11:08 pm
Posts: 3
[quote="etilley "]

To return the kindness, here is a very simple solution to adding categories, sections, product names, your pets names, and whatever else you want - to your SEF urls ... I could have queried the database and automatically filled in category, section_id, etc but this example keeps it simple.

In    includes\sef.php

Right before ... " if ($mosConfig_sef) { "

Add as many of these lines as you like.. I have replaced the standard SEF URL for "Contact Us" as a simple example that should work immediately for everyone...

$_SERVER['REQUEST_URI'] = str_replace( "Contact_Us", "component/option,com_contact/Itemid,3",$_SERVER['REQUEST_URI']) ;

and then down near the end of the file,

$string = str_replace( "component/option,com_contact/Itemid,3","Contact_Us",$string) ;

immediately before :

return $mosConfig_live_site."/index.php/".$string;   (note that I've incorporated websmurf's hack - soon to be implemented in 1.1)

The URL looks as follows:

http://www.yourwebsite.com/index.php/Contact_Us/

If you are wondering how I knew what to place in the "Contact_Us" string, I just clicked on "Contact Us" in the main menu and copy and pasted it here. So simple its gross and when I have more time, I can pull Category Names, Section Names, Products, etc from the database so it all works automatically.

----------------------------------------------------------------------------------------------------------------------

Your 'contact us' example worked for me, but other menu items the string looks like:

1)  index.php?/content/view/48/72/
2)  index.php?/content/section/9/53/

How do I rewrite these?  Thanks.


Top
  E-mail  
 
Posted: Sat Oct 21, 2006 3:42 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Sep 26, 2006 2:31 am
Posts: 13
We have jumped a little bit forward since the previous post in this tread and Joomla 1..0.11 is the last stable version.
Sef without rewrite is included in SEF.PHP and just to uncomment for them who want to use it.

That´s just what I am needing since the server owner where I have my site doesn't´t want to install a rewrite for IIS even though I have asked him and suggested nice and good working GNU/GPL versions for him to use. :(

So what was left for me was to uncomment the following line in SEF.PHP (somewhere around line 512 I think...).

return $mosConfig_live_site .'/index.php?/'. $string . $fragment;

With links like my site//index.php?/content/view/49/48/ it sure looks better then before even though I would have preferred fully working rewrites links and some nice SEF component on my site.

Although.. There is a slightly problem that occurred. I have had the possibility to edit content from frontend before using the SEF trick. After uncommenting thees lines in SEF.PHP I can´t edit content from the frontend and end up on the start page when ever trying. Any suggestion for how I can make a workaround to be able to edit content from frontend with the sef for no rewrite activated?

I don´t know if this is enough information for giving me a suggestion of what to do but if more is needed just tell me what and I´ll happily include it.


Top
  E-mail  
 
Posted: Wed Nov 01, 2006 4:27 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Feb 23, 2006 9:12 pm
Posts: 15
Does this work retroactively?  I was using SEF WITH mod_rewrite on one host, and moved to another where I'm having difficulty making that work (long story), so I gave this a shot...but it doesn't seem to work with the links I currently have to SEO'd URLs.

Can this work retroactively?


Top
   
 
Posted: Sat Nov 04, 2006 7:04 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Nov 04, 2006 6:59 am
Posts: 1
I need help with this also. I have spent 3-4 hours read many threads related to this topic, but I just can't figure this out.

My version is 1.0.11

It seems somewhat different from the older versions? The threads I read were probably old. Please help.


Top
  E-mail  
 
Posted: Sat Nov 04, 2006 6:56 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Nov 04, 2006 6:47 pm
Posts: 2
I recently configured our Joomla installation (with instructions from this thread (/index.php?/) to enable SEF URLs on Window 2003 server running II6.  Everything works great with one exception; in IE6 we get an error indicating the site cannot be found (see attached image). Oddly enough if you press OK and refresh the page the site will display. Has anyone else encountered this issue? All other browsers (Firefox, Safari, Opera, IE7) render the page as expected.

I would greatly appreciate any assistance,

Kind Regards,

Tyler


You do not have the required permissions to view the files attached to this post.


Last edited by berkelium on Sat Nov 04, 2006 7:09 pm, edited 1 time in total.

Top
   
 
Posted: Fri Nov 10, 2006 2:15 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Aug 13, 2005 2:13 am
Posts: 223
Location: Sweden
berkelium: which WYSIWYG editor do you use?

_________________
Emir Sakic
http://www.sakic.net


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 127 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Quick reply

 



Who is online

Users browsing this forum: jethomas, leemarquis, Zanzor and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group