View Full Version : mod_rewrite - rewritting and redirection

06-06-2008, 06:19 PM
Hi, any one mind telling me how to rewrite a url?

currently i have:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^page_one.php$ index.php?page=1

this works fine, i type in /page_one.php and it goes to ?page=1.

my question is how would i get it so that when i click a link for...

...i get /page_one.php in the url bar (in the browser)?

am i right in thinking this would require being redirected but wouldnt that cause some sort of never ending loop? im sure theres a simple solution but im new to mod_rewrite so any advice/links etc would be appreciated!