| Author |
|
smokum Newbie

Joined: 16 January 2006 Location: Netherlands
Online Status: Offline Posts: 12
|
| Posted: 22 June 2009 at 6:07pm | IP Logged
|
|
|
Hi,
i hope someone can help me out.
Is use isapi 2 and try to get nice clean urls.
But, the index.php stays, i really want to remove this :(
I hope some have a script i can copy past in de http.ini :)
(webiste: http://www.thesetz.nl/
urls now:
http://www.thesetz.nl/index.php/events/defqon-2009-livesets
must be: http://www.thesetz.nl/events/defqon-2009-livesets
Server:
php 5
isap 2
IIS 6
Thanks!!
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 23 June 2009 at 8:24am | IP Logged
|
|
|
Show your existing rules, please.
|
| Back to Top |
|
| |
smokum Newbie

Joined: 16 January 2006 Location: Netherlands
Online Status: Offline Posts: 12
|
| Posted: 24 June 2009 at 7:27pm | IP Logged
|
|
|
Don't have any rules anymore, because i realy don't have a clue how to do it :)
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 25 June 2009 at 8:47am | IP Logged
|
|
|
Well, try the following rule:
RewriteRule /events/([^/?]+) /index.php/events/$1 [I,L]
|
| Back to Top |
|
| |
smokum Newbie

Joined: 16 January 2006 Location: Netherlands
Online Status: Offline Posts: 12
|
| Posted: 04 July 2009 at 4:20am | IP Logged
|
|
|
Hi,
thanks, thats works :)
But, is there a way that is works for al de url's?
(sort of wildcard)
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 04 July 2009 at 9:33am | IP Logged
|
|
|
Try this:
RewriteRule /(\w+)/([^/?]+) /index.php/$1/$2 [I,L]
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 11 February 2010 at 11:30am | IP Logged
|
|
|
Hello,
I have the same setup/problem, and I'm assuming that I put this:
RewriteRule /(\w+)/([^/?]+) /index.php/$1/$2 [I,L]
in my .htaccess file. The thing is that my windows server 2003,iis6 doesn't seem to be reading that file. I can wipe everything in the file out and your isapi filter still works, just with the index.php:
http://www.domain.com/index.php/test/webpage.html
can I put that line somewhere else or force the server into looking at that .htaccess file?
Thanks,
Jim
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 11 February 2010 at 11:46am | IP Logged
|
|
|
I'm sorry, I figured out how to edit .htaccess:
RewriteRule /(\w+)/([^/?]+) /index.php/$1/$2 [I,L]
but now I get this error message:
Unknown expression on line #23: Options +FollowSymLinks
when I try and paste that in and apply with the Helicon Config Editor.
Any thoughts on that?
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 14 February 2010 at 3:18pm | IP Logged
|
|
|
What version of the ISAPI_Rewrite are you using (2 or 3)?
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 16 February 2010 at 10:23am | IP Logged
|
|
|
I'm using the free version: ISAPI_Rewrite 3 Lite installation package
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -149
|
| Posted: 18 February 2010 at 3:49am | IP Logged
|
|
|
For ISAPI_Rewrite 3, please, try:
RewriteEngine on
RewriteBase /
RewriteRule ([^/]+)/([^/]+) index.php/$1/$2 [NC,L]
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 18 February 2010 at 9:57am | IP Logged
|
|
|
Hello Andrushka,
That didn't seem to work, here is what my .htaccess file looks like, THANKS!
# Helicon ISAPI_Rewrite configuration file # Version 3.1.0.69
## # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $ # @package Joomla ## Can be commented out if causes errors, see notes above. #Options +FollowSymLinks # # mod_rewrite in use
RewriteEngine On RewriteBase / RewriteRule ([^/]+)/([^/]+) index.php/$1/$2 [NC,L]
########## 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
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -149
|
| Posted: 19 February 2010 at 3:05am | IP Logged
|
|
|
Please, provide the rewrite.log.
It also might be:
RewriteRule ^([^/]+)/([^/]+)$ index.php/$1/$2 [NC,L]
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 19 February 2010 at 8:23am | IP Logged
|
|
|
Hello Andrushka,
I didn't have anything in that log, or in httpd.conf, so I added:
RewriteLogLevel 9 to httpd.conf and it started logging like this:
198.10.10.10 198.10.10.10 Fri, 19-Feb-2010 09:01:15 GMT [www.mydomain.us/sid#283668804][rid#48832448/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
Should this be pointing to .htaccess instead, I think the htaccess file isn't even being read.
I'm using Windows 2003.
Thanks,
Jim
|
| Back to Top |
|
| |
suneelpavu Newbie

Joined: 20 February 2010
Online Status: Offline Posts: 2
|
| Posted: 20 February 2010 at 5:51am | IP Logged
|
|
|
Hello Andrushka,
I didn't have anything in that log, or in httpd.conf, so I added:
RewriteLogLevel 9 to httpd.conf and it started logging like this:
198.10.10.10 198.10.10.10 Fri, 19-Feb-2010 09:01:15 GMT [www.mydomain.us/sid#283668804][rid#48832448/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
Should this be pointing to .htaccess instead, I think the htaccess file isn't even being read.
I'm using Windows 2003.
Thanks,
----------------------------------------------
|
| Back to Top |
|
| |
suneelpavu Newbie

Joined: 20 February 2010
Online Status: Offline Posts: 2
|
| Posted: 20 February 2010 at 5:52am | IP Logged
|
|
|
Hello Andrushka,
I didn't have anything in that log, or in httpd.conf, so I added:
RewriteLogLevel 9 to httpd.conf and it started logging like this:
198.10.10.10 198.10.10.10 Fri, 19-Feb-2010 09:01:15 GMT [www.mydomain.us/sid#283668804][rid#48832448/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
Should this be pointing to .htaccess instead, I think the htaccess file isn't even being read.
I'm using Windows 2003.
Thanks,
-----------------------------------------------------------
chevrolet ac compressor chicago prom limousine
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -149
|
| Posted: 22 February 2010 at 5:19am | IP Logged
|
|
|
Please, carefully read the specification of ISAPI_Rewrite 3 LITE
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 23 February 2010 at 3:14pm | IP Logged
|
|
|
Hello Andrushka, I'm with yuo on all that now, and my joomla site will work without index.php, however all the dynamic links on the site still point to url's with index.php, I can remove that after the page loads?
Any ideas, this is my httpd.conf file: RewriteLogLevel 9 RewriteEngine On RewriteBase / MaxMatchCount 10 # don't rewrite any request that goes to administrator RewriteRule ^/administrator - [L] RewriteCond %{HTTP_URL} (/|\.htm|\.php|\.html|!administrator|/[^.]*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) /index.php [U,L] ##### End - Rewrite rules to block out some common exploits
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -149
|
| Posted: 24 February 2010 at 4:34am | IP Logged
|
|
|
Ok,
do i get you right: you have everything working but you're concerned about links showing up with index.php when you
point mouse at them? but when you click it does redirect, right?
|
| Back to Top |
|
| |
jm473 Newbie

Joined: 11 February 2010
Online Status: Offline Posts: 8
|
| Posted: 24 February 2010 at 9:04am | IP Logged
|
|
|
No, it doesn't redirect. URLs in Joomla look like this:
http://www.mydomain.us/index.php/websites/test-sites.html
I can manually remove the index.php reference and the page loads, something it wouldn't do before, but hovering over links it shows index.php and also puts that in the url.
|
| Back to Top |
|
| |