IPB

Welcome Guest ( Log In | Register )

Clean Url Joomla Hack

This topic is about Clean Url Joomla Hack, the author, chaz, wrote about: in other words they use index.php and added the new strings QUOTEn continuation of the topic on the former forum: i think i've found a rather simple way to avoid the mod_rewrite ability in orde ... To read more just scroll down

 
Reply to this topicStart new topic
Clean Url Joomla Hack, some ideas
chaz
post Feb 21 2008, 03:10 AM
Post #1


Member
**

Group: Members
Posts: 26
Joined: 21-August 07
Member No.: 34



in other words they use index.php and added the new strings wink.gif

QUOTE
n 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: Select all $_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.site.ext/index.php/content/view/9/34/
http://www.site.ext/index.php/content/view/10/35/
http://www.site.ext/index.php/component ... Itemid,78/
Go to the top of the page
 
+Quote Post
bramburn
post Mar 18 2008, 03:12 PM
Post #2


Administrator
***

Group: Root Admin
Posts: 905
Joined: 25-June 07
From: London
Member No.: 1



the bad thing with this is its hard to track users navigating if you are using statistics tools, well mine doesnt work for some reason when i used this in the early stages of minervaseo.

i will see if I can still fish the script for that.


--------------------
Remember to please use the bug tracker for all bugs and errors, it is more organised that way.
Support in french and english
If I reply in French please excuse my spelling & grammar, i haven't written in french for a long time.
DO NOT PM ME TO ASK ME TO GO ON MSN, post the query on the support forums!
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic
Tags
No Tag inserted yet


 



RSS Lo-Fi Version | Sitemap  | SEO by MinervaSEO © Icelabz.net Time is now: 6th October 2008 - 06:11 PM