regex - How to show always the same url? -
i using apache.
i have www.example.com/?p_action=user_profile&post_author=34
, want use www.example.com/niceurl/
i want if user enters of urls, www.example.com/niceurl/
shown in browser (of course, www.example.com/?p_action=user_profile&post_author=34
retrieved server).
rewriterule not seem solution this, it?
thanks
well can try putting,
rewriteengine on rewriterule ^([^/]*)/([^/]*)$ /?p_action=$1&post_author=$2 [l]
in .htaccess file.
imo rewriterule should solve problem.
Comments
Post a Comment