LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with apache mod_rewrite (https://www.linuxquestions.org/questions/linux-software-2/problem-with-apache-mod_rewrite-521697/)

nephish 01-22-2007 08:57 AM

problem with apache mod_rewrite
 
hello there all,

we recently moved from a php app on one computer to a rails app on another.
we switched servers by switching where port 80 is routed to in our router.

the problem is that we have guys with bookmarks to pages that no longer exist and when they are redirected to our new site, it gives them routing errors.

So what kind of rewrite rule can i write that makes everything past the .com part of our web address go to certain page, no matter what comes after the .com in the old server....
for example. if i have bookmarked
mydomain.com/main_page.php?customer=john

how can i make that go to
mydomain.com/main/

we want everyone going to the index page in this folder

any ideas?
hope i am putting this in the right part of the forum.

thanks


All times are GMT -5. The time now is 09:21 AM.