Reply
A few .htaccess questions
Old 08-24-2007, 09:54 AM A few .htaccess questions
Unknown.

Posts: 1,693
So, working with .htaccess isn't my greatest strength, and it's not exactly too easy to find (understandable) examples!

Two questions,

1. How do I remove all trailing slashes from urls?
For example, redirecting domain.com/page/3/ to domain.com/page/3

I seem to be able to find plenty of tutorials on adding the trailing slash, but not removing it!

2. How would I redirect domain.com/index.php to domain.com?
Therefore hiding the filename from the user, just for the index.php file though, I've got all the other urls sorted with mod_rewrite.

Thanks in advance!
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-25-2007, 08:40 AM Re: A few .htaccess questions
chrishirst's Avatar
Super Moderator

Posts: 16,452
Location: Blackpool. UK
have a read through http://www.highrankings.com/forum/in...p?showforum=61

Both have come up a number of times if I recall
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to A few .htaccess questions
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12024 seconds with 12 queries