Topic: isapi rewrite 2.8 joomla and jce 1.5.7
|

|
| Author |
|
basilm Newbie

Joined: 02 June 2010 Location: South Africa
Online Status: Offline Posts: 3
|
| Posted: 02 June 2010 at 4:15am | IP Logged
|
|
|
Hello I have a problem with our site running Joomla 1.5.14 with SEF enabled from the joomla core. We are running on a hosted iis 6 server with isapi 2.8 full version. The site is also running iispassword and this has specific repercussions.
The Problem: Because of the combination of tools running on the hosted server we cannot rename the htaccess.txt file to .htaccess as iispassword then locks the site if it finds a folder with .htaccess file in it. Joomla sef wants a .htaccess file so we have to use htaccess.txt in combination with httpd.ini My httpd.ini file has the following entries:
************************************ [ISAPI_Rewrite] # Block external access to the httpd.ini and httpd.parse.errors files RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O] # Block external access to the Helper ISAPI Extension RewriteRule .*\.isrwhlp / [F,I,O] #Fix MyBlog’s SEF URLs RewriteRule /(.*).html /index.php?q=$1 #RewriteRule ^/(.*)\.html /$1
#Keep Isapi_Rewrite from rewriting URLs that look like regular files RewriteRule ^/(.*\.[a-zA-Z1-9]{2,4}) /$1 [L]
# Excluding the administrator section RewriteRule ^/(administrator\/.*) /$1 [L] RewriteRule ^/(webim\/.*) /$1 [L] RewriteRule ^/(ckeditor\/.*) /$1 [L] RewriteRule ^/(plugins\/.*) /$1 [L] RewriteRule ^/(images\/.*) /$1 [L]
#Get rid of the index.php #RewriteRule ^/(.php) /index.php\?/$1 [I,L] var $live_site = ‘http://www.website.co.za’;
RewriteCond %{URL} ^(/component/option,com) [NC,OR] RewriteCond %{URL} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule /(.*) /index.php [L,U] ********************************* The problem is this.
We want SEF to only work for the frontend and not the backend. We do not want the backend to work with sef as this makes no sense, however in order to get JCE editor to work in the backend I have had to add the entry RewriteRule ^/(plugins\/.*) /$1 [L] This makes the backend editor work for creating wysiwyg articles, however, I now cannot add an image or file using the attach image option inside of JCE. I have tried to add the image location with the same logic as the above rule but this still does not work.
I am not a regex fundi at all and would like to have some kind of success at this.
Can anyone help me?
What information do you need?
Thanks
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 03 June 2010 at 4:01am | IP Logged
|
|
|
"we cannot rename the htaccess.txt file to .htaccess as iispassword then locks the site if it finds a folder with .htaccess file in it."
- if you use ISAPI_Rewrite v2, the config files (global as well as per-site) must be named hpptd.ini
"however, I now cannot add an image or file using the attach image option inside of JCE."
- maybe we need to write more accurate rule instead of RewriteRule ^/(plugins\/.*) /$1 [L]. What is the exact URL for the editor?
__________________ Regards,
Anton
|
| Back to Top |
|
| |
basilm Newbie

Joined: 02 June 2010 Location: South Africa
Online Status: Offline Posts: 3
|
| Posted: 03 June 2010 at 4:23am | IP Logged
|
|
|
Good Day Anton,
Thank you for your reply. to answer your questions here goes:
1) - if you use ISAPI_Rewrite v2, the config files (global as well as
per-site) must be named hpptd.ini A) we already have this as the sites SEF works well.
2) - maybe we need to write more accurate rule instead of RewriteRule
^/(plugins\/.*) /$1 [L]. What is the exact URL for the editor? A) location of editor is from www root /plugins/editors/jce I have more editors in the /plugins/editors folder and the default TinyMCE version 2 which comes with joomla has no problems even without the Rewriterule ^/(plugins\/.*) rule.
Thanks.
I am looking into the possibility of hosting a second server on a linux hosted LAMP platform and do a reroute in the domain records to the new site just to be able to make this work. will cost me but it may be my only option if we cannot find a solution.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 03 June 2010 at 5:41am | IP Logged
|
|
|
We may have an online meeting and you'll show me what's not working and try to fix it.
If you find it a good idea, please choose the meeting tool you like and time suitable for you, and send me the meeting credentials to
support@helicontech.com indicating 'for Anton' in the topic.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
basilm Newbie

Joined: 02 June 2010 Location: South Africa
Online Status: Offline Posts: 3
|
| Posted: 03 June 2010 at 8:22am | IP Logged
|
|
|
Good day Anton
Strange thing happened 2day we found out that google site search of our site showed a site connect that made no sense e.g. site is www.example.com and google said the site is www.example.com/otherword we did a 301 redirect to point back to the site so google search users can click on the site and go into it properly. this worked and suddenly the backend started working!!!
makes no sense now but maybe i need to look at my code above and see what i did wrong!
So for now it seems to work. but i am stumped...
Thanks for all your support thus far though and we really appreciate it tremendously.
Basil.
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|