Hello, i want to make this url like http://test.com/2256 and also http://test.com/2256/ while http://test.com/?refid=2256 can someone code me this, i had tried a lot but doesnt found its solution. Thanks.
Was just coming to post the same question!!! So far i have found this: RewriteEngine On RewriteRule ^([A-Za-z0-9-]+)?$ page.php?s=$1 Code (markup): This will redirect: www.site.com/1234 to: www.site.com/page.php?s=1234 BUT it stops working when someone puts a "/" at the end of the url.. www.site.com/1234/ <-- will just break it. So if anyone can help more! Cheers.
Thanks man its working RewriteRule ^([A-Za-z0-9-]+)?$ index.php?ref=$1 RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?ref=$1