Hi guys, I have a dynamic page say: www.mysite.com/index?lookup=faqs I want use a static url like: www.mysite.com/yourfaqs to visit that page. And once people enter the dynamic url, it should be directed to the static url. That is, the URL shown on the address bar on the browser, should always be the static url. I have the following rules: RewriteRule ^yourfaqs /index.php?lookup=faqs [L] RewriteCond %{QUERY_STRING} lookup=faqs RewriteRule ^index\.php$ http://www.mysite.com/yourfaqs/$1? [R=301,L] But as might see the problem here, it keeps redirecting. Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Is there a way to do what i want? Thanks in advance.
Basically, what I need is, like in wordpress. When you type in www.mysite.com/?p=2 It will directs you to www.mysite.com/about, and show the page content. When you type in www.mysite.com/about, it will show the same page content too. Thanks in advance.
Thank you for your reply. Both rules are not working properly. I guess for dynamic link, we can't use something like this: RewriteRule ^faq index.php?lookup=faq [NC,L] I guess we have to use %{QUERY_STRING}? And what i want is using www.mysite.com/yourfaqs to re_write to www.mysite.com/index?lookup=faqs and www.mysite.com/here_is_my_info to re_write to www.mysite.com/index?lookup=about Those are fixed, no need $1, $2 Any suggestion? Thanks in advance.
Actually, 2 of my rules from the original post above work fine individually. However, when I use them together, it keeps redirecting. Looking for a solution to fix that issue. Thanks again.