andre25 Posted April 6, 2012 Share Posted April 6, 2012 I desperately need help about this. I have tried and looking some way out of rewrite rule, it seems ok with the site, using rewrite rule but the address appear real like not using rewrite rule in .htaccess First it is ok, but after running several month and the database get much more data in it, the address in web browser This is the .htaccess RewriteEngine on Options All -Indexes RewriteRule ^([^/\.]+)/([^/\.]+)/?$ http://www.name.com/index.php?c=$2 [L] RewriteRule ^content/([^/\.]+)/([^/\.]+)/?$ http://www.name.com/index.php?ct=$2 [L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ http://www.name.com/index.php?c=$1&p=$2 [L] RewriteRule ^content/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ http://www.name.com/index.php?ct=$1&pt=$2 [L] RewriteRule ^([^/\.]+)/([^/\.]+)/page-([^/\.]+).html$ http://www.name.com/index.php?page=$3&c=$2 [L] Thanks Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/ Share on other sites More sharing options...
AyKay47 Posted April 6, 2012 Share Posted April 6, 2012 I don't understand the issue. Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/#findComment-1334931 Share on other sites More sharing options...
andre25 Posted April 6, 2012 Author Share Posted April 6, 2012 it still appear http://www.name.com/index.php?ct=33&pt=11052 in web address. But it can be access by typing http://www.name.com/content/33/11052/name-title-header Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/#findComment-1334945 Share on other sites More sharing options...
AyKay47 Posted April 6, 2012 Share Posted April 6, 2012 rewrite rules are not meant to actually change the url for you, they give a means of accessing the same page by using a "prettier" URL. It's up to you to reconstruct your website to use those pretty urls. Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/#findComment-1334947 Share on other sites More sharing options...
andre25 Posted April 6, 2012 Author Share Posted April 6, 2012 how to change that, i don't want in the address appear as it real link, it is not good for seo right? Can you give me a sample or suggestion? Thanks before... Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/#findComment-1334958 Share on other sites More sharing options...
Jessica Posted April 6, 2012 Share Posted April 6, 2012 It's up to you to reconstruct your website to use those pretty urls. Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/#findComment-1334959 Share on other sites More sharing options...
AyKay47 Posted April 6, 2012 Share Posted April 6, 2012 Set the sites internal links to point to http://www.name.com/content/33/11052/name-title-header instead of http://www.name.com/index.php?ct=33&pt=11052 Quote Link to comment https://forums.phpfreaks.com/topic/260445-rewrite-rule/#findComment-1334960 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.