4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Simple .htaccess problem preserve urlstring sometimes
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
jl5501
Junior WebHelper
Junior WebHelper


Joined: 01 Feb 2008
Posts: 1

PostPosted: Fri Feb 01, 2008 10:45 pm (16 years, 2 months ago) Reply with QuoteBack to Top

Hello

I have what I think is a simple problem, but have not been able to resolve.

I have some rewrite rules working, and a rule working to cover urls with and without a trailing /
However, for legacy reasons I must be able to accept urls containing index.php without any alteration, and by newly added first rule is an attempt to do that.

The 3 rules below the 1st are doing exactly as intended.

This is the .htaccess file

RewriteEngine on
Options +FollowSymlinks
RewriteRule ^[a-z0-9_-]+/[a-z0-9_-]+/index.php/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2 [L]
RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/
RewriteRule ^pssny/([^\/]+)/$ pssny/application.php?source=$1
RewriteRule ^nypta/([^\/]+)/$ nypta/application.php?source=$1
OfflineView User's ProfileFind all posts by jl5501Send Personal MessageSend email
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.224658 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme