vinsb Posted March 11, 2014 Share Posted March 11, 2014 Hi, first I'm sorry if I posting this in wrong forum. So I've tried to make my url a little bit more 'user friendly' with .htaccess. For example this URL's http://localhost/index.php?currentpage=1 http://localhost/page.php?pn=1 http://localhost/gifs.php?id=1 http://localhost/pic.php?cat_id=1&id=5 My .htaccess content is: Options +FollowSymlinks RewriteEngine on RewriteRule ^currentpage/([^/]*)$ /index.php?currentpage=$1 [L] RewriteRule ^pn/([^/]*)$ /page.php?pn=$1 [L] RewriteRule ^id/([^/]*)$ /gifs.php?id=$1 [L] RewriteRule ^category-([^/]*)/([^/]*)$ /pic.php?cat_id=$1&id=$2 [L] ErrorDocument 404 http://localhost/404.php But it doesn't work... Quote Link to comment Share on other sites More sharing options...
vinsb Posted March 12, 2014 Author Share Posted March 12, 2014 (edited) I've tried also on href links this but doesn't work also.. show empty page and without css in .htaccess RewriteRule ^category/(.*) pic.php?cat_id=$1&id=$2 [L,QSA] and in pic.php <a href="category/'.$cat_id.'/'.$line[0].'">Next </a> Edited March 12, 2014 by vinsb Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.