Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Remove index.php joomla urls Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smokum
Newbie
Newbie


Joined: 16 January 2006
Location: Netherlands
Online Status: Offline
Posts: 7
Posted: 22 June 2009 at 6:07pm | IP Logged Quote smokum

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 View smokum's Profile Search for other posts by smokum
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8080
Posted: 23 June 2009 at 8:24am | IP Logged Quote Lexey

Show your existing rules, please.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
smokum
Newbie
Newbie


Joined: 16 January 2006
Location: Netherlands
Online Status: Offline
Posts: 7
Posted: 24 June 2009 at 7:27pm | IP Logged Quote smokum

Don't have any rules anymore, because i realy don't have a clue how to do it :)

Back to Top View smokum's Profile Search for other posts by smokum
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8080
Posted: 25 June 2009 at 8:47am | IP Logged Quote Lexey

Well, try the following rule:

RewriteRule /events/([^/?]+) /index.php/events/$1 [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
smokum
Newbie
Newbie


Joined: 16 January 2006
Location: Netherlands
Online Status: Offline
Posts: 7
Posted: 04 July 2009 at 4:20am | IP Logged Quote smokum

Hi,

thanks, thats works :)

But, is there a way that is works for al de url's?

(sort of wildcard)

Back to Top View smokum's Profile Search for other posts by smokum
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8080
Posted: 04 July 2009 at 9:33am | IP Logged Quote Lexey

Try this:

RewriteRule /(\w+)/([^/?]+) /index.php/$1/$2 [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 11 February 2010 at 11:30am | IP Logged Quote jm473

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 View jm473's Profile Search for other posts by jm473
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 11 February 2010 at 11:46am | IP Logged Quote jm473

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 View jm473's Profile Search for other posts by jm473
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8080
Posted: 14 February 2010 at 3:18pm | IP Logged Quote Lexey

What version of the ISAPI_Rewrite are you using (2 or 3)?
Back to Top View Lexey's Profile Search for other posts by Lexey
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 16 February 2010 at 10:23am | IP Logged Quote jm473

I'm using the free version:
ISAPI_Rewrite 3 Lite installation package

Back to Top View jm473's Profile Search for other posts by jm473
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 18 February 2010 at 3:49am | IP Logged Quote AndrushkaUS

For ISAPI_Rewrite 3, please, try:

RewriteEngine on
RewriteBase /
RewriteRule ([^/]+)/([^/]+) index.php/$1/$2 [NC,L]

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 18 February 2010 at 9:57am | IP Logged Quote jm473

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 View jm473's Profile Search for other posts by jm473
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 19 February 2010 at 3:05am | IP Logged Quote AndrushkaUS

Please, provide the rewrite.log.
It also might be:
RewriteRule ^([^/]+)/([^/]+)$ index.php/$1/$2 [NC,L]

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 19 February 2010 at 8:23am | IP Logged Quote jm473

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 View jm473's Profile Search for other posts by jm473
 
suneelpavu
Newbie
Newbie


Joined: 20 February 2010
Online Status: Offline
Posts: 2
Posted: 20 February 2010 at 5:51am | IP Logged Quote suneelpavu

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 View suneelpavu's Profile Search for other posts by suneelpavu
 
suneelpavu
Newbie
Newbie


Joined: 20 February 2010
Online Status: Offline
Posts: 2
Posted: 20 February 2010 at 5:52am | IP Logged Quote suneelpavu

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 View suneelpavu's Profile Search for other posts by suneelpavu
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 22 February 2010 at 5:19am | IP Logged Quote AndrushkaUS

Please, carefully read the specification of ISAPI_Rewrite 3 LITE

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 23 February 2010 at 3:14pm | IP Logged Quote jm473

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 View jm473's Profile Search for other posts by jm473
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 24 February 2010 at 4:34am | IP Logged Quote AndrushkaUS

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?

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
jm473
Newbie
Newbie


Joined: 11 February 2010
Online Status: Offline
Posts: 8
Posted: 24 February 2010 at 9:04am | IP Logged Quote jm473

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 View jm473's Profile Search for other posts by jm473
 

Page of 2 Next >>
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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