Forum Moderators: phranque

Message Too Old, No Replies

rewrite mysite.com?p=page to mysite.com/page

         

Fronix

4:42 am on Nov 22, 2009 (gmt 0)

10+ Year Member



Hi im trying to rewrite www.mysite.com?p=page to www.mysite.com/page. Ive tryed alot but i can't get anything to work.

Thanks

g1smd

1:24 pm on Nov 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Without seeing your code it isn't possible to advise where you went wrong.

However, be aware that you need to link to

/page
on your pages, and that the rewrite then fetches the content from
/index.php?p=page
assuming that the script file is called
index.php
of course.

The rewrite accepts a URL request and fetches a file from the internal filesystem. There are plenty of prior code examples in this forum, as some variant of this question is asked almost every day.