TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-01-2008, 03:29 PM   #1 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default Help With Mod Rewrite

Hey everyone! I'm very bad at MOD_REWRITE and was hoping you guys could help me out.

What I want to do is when the URL page is in the address bar the sever reads bin/index.php?page=page instead of page without redirecting.

Thanks in advance. :)
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 02-01-2008, 09:05 PM   #2 (permalink)
The Contributor
Upcoming Programmer 
 
Gurnk's Avatar
 
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
Gurnk is on a distinguished road
Default

MOD_REWRITE WIZARD // beta

Thats what I use. :)
Send a message via MSN to Gurnk
Gurnk is offline  
Reply With Quote
The Following User Says Thank You to Gurnk For This Useful Post:
Alan @ CIT (02-01-2008)
Old 02-12-2008, 06:35 PM   #3 (permalink)
The Acquainted
 
Join Date: Nov 2007
Posts: 154
Thanks: 31
SOCK is on a distinguished road
Default

A bit late, but
Code:
RewriteEngine on
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)$ bin/index.php?page=$1 [NC,L]
Does that help? You might consider using a specific set of pages to choose from, e.g. 'main','calendar','forum', etc and have the rules set to
Code:
RewriteRule ^(main|calendar|forum){1}$ bin/index.php?page=$1 [NC,L]
__________________
I reject your reality, and substitute my own.
SOCK is offline  
Reply With Quote
The Following 2 Users Say Thank You to SOCK For This Useful Post:
Aaron (02-14-2008), ETbyrne (02-12-2008)
Old 02-12-2008, 07:59 PM   #4 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Thanks!
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 02:07 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design