Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

The page cannot be found - ISAPI rewrite problem?
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1
  • 2

TOPIC: The page cannot be found - ISAPI rewrite problem?

The page cannot be found - ISAPI rewrite problem? 16 years, 5 months ago #4331

  • JanV
  • OFFLINE
  • Posts: 3
Hello,

I'm trying to get ARTIO JoomSEF v3.1.0 running with joomla 1.5.
I've been unsuccesfull so far.

Het homepage is showing, but when I click on one of the links internet explorere returns the "The page cannot be found" page.

I'm forced to use HTTPD.ini because my webhost only has windows servers..... I think this is causing the problem because I do not have a clue how to configure the httpd.ini file to get it working.

My joomla installatino is in the folder INT

I've added all information I have below.

Does anyone know what I'm doing wrong??
Please help me!!

Jan


System information

Joomla 1.5.3
PHP Version: 5.2.6
Web Server: Microsoft-IIS/6.0

HTTPD.ini


########## 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 /INT/(.*) /INT/index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

Re:The page cannot be found - ISAPI rewrite problem? 16 years, 5 months ago #4336

  • JanV
  • OFFLINE
  • Posts: 3
I found a solution by myself.

The httpd.ini I posted before is a copy of a .htacces file and therefore does not work!

Now I'm using this:

[ISAPI_Rewrite]
RewriteCond URL .*(/|\.htm|\.php|\.html|/[^.?]*)(\?.*)?$
RewriteCond URL .*(?!.png|.gif|.jpg|.css|.js)(\?.*)?$
RewriteCond URL ^/INT/(?!administrator).*
RewriteRule /INT/([^?]*)(\?.*)? /INT/index.php$5 [U,L]

I still have to do some testing, but it seems to work pretty wel!
Last Edit: 16 years, 5 months ago by JanV.

Re:The page cannot be found - ISAPI rewrite problem? 16 years, 5 months ago #4356

  • JanV
  • OFFLINE
  • Posts: 3
Unfortunately I was a bit early with my celebration....

I did not get any error messages, but now all links are redirected to the home page.

So the question remains:

Does anyone know how to configure the httpd.ini file in order to get joomsef working?!!

Re:The page cannot be found - ISAPI rewrite proble 16 years, 4 months ago #4419

you may test this httpd.ini config.




########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#
# 'nocase|NC' (no case)
# 'ornext|OR' (or next condition)
#
# ##optional - see notes##
# RewriteRule /component/option,com.* index.php [I,L]
RewriteRule (?:htm?|\.php|[^.]*) index.php [I,L]
RewriteRule (?:content/|/component/) index.php [I,L]
#
########## End - Joomla! core SEF Section

########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
# ##optional - see notes##
#RewriteRule /component/option,com.* index.php [I,L]
RewriteRule /content/(?:.*\.(?:html?|php)|[^.]*) index.php [I,L]
#
########## End - 3rd Party SEF Section

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteRule (?:mosConfig_[a-zA-Z_]{1,21}(=|\%3D)) / [I,F,L]

# Block out any script trying to base64_encode crap to send via URL
RewriteRule (?:base64_encode.*\(.*\)) / [I,F,L]

# Block out any script that includes a <script> tag in URL
RewriteRule (?:(\<|%3C).*script.*(\>|%3E)) / [I,F,L]

# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteRule (?:GLOBALS(=|\[|\%[0-9A-Z]{0,2})) / [I,F,L]

# Block out any script trying to modify a _REQUEST variable via URL
RewriteRule (?:_REQUEST(=|\[|\%[0-9A-Z]{0,2})) / [I,F,L]

#
########## End - Rewrite rules to block out some common exploits

Re:The page cannot be found - ISAPI rewrite problem? 15 years ago #8770

  • joeyrhythm
I really don't mean to hijack this post but has anyone found a solution to this.

I am running Joomla 1.0.12 on an IIS Server and can't get joomsef to work.

The URLS are SEF but I get "The page cannot be found error" on everything but the home page.

Someone help. This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Re:The page cannot be found - ISAPI rewrite problem? 15 years ago #8847

  • jaku
Hello,

well, the configuration for Joomla 1.0.x and 1.5.x may be a bit different in the content of httpd.ini.
Also, the configuration may be dependant on if you have free or paid version of the ISAPI Rewrite module and what version of it you are using.
Some general hints are published in documentation.
  • Page:
  • 1
  • 2
User Login Empty