4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu
Please consider registering: registration is fast, easy and free! Benefits of registration:
  • Free advertising for your website: Every post in our forums goes towards a "credit" of ads, which are displayed on most pages of our forums. Each post gives you 400 ad impressions. To submit your ad, edit your profile.
  • Discount at TemplateMonster: All our members enjoy a 10% discount at TemplateMonster.com!
  • Private Messages: Exchange private messages with other members of the forums.
  • Message Tracking/Subscription: phpBB enables you to subscribe to threads which interest you, and will then email you when a reply is posted. phpBB also remembers which posts registered users have read during a session, which means you can keep track of which posts you have already looked at.

 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 (6 years, 8 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.

Australian Web Hosting
Australian Web Hosting
PoignantEase
Web design, coding, script installation, phpBB customisation - From a 4WebHelp team member


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