chmpdog Posted September 8, 2007 Share Posted September 8, 2007 Hi, I have made my website like this index.php?task=page Is there a way to make it SEO, such as: url.com/task/page/1.html I can easily change all the links on my page but I dont know how to include the _GET tag. Thanks Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/ Share on other sites More sharing options...
benjaminbeazy Posted September 8, 2007 Share Posted September 8, 2007 use mod_rewrite in .htaccess file Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/#findComment-344279 Share on other sites More sharing options...
chmpdog Posted September 8, 2007 Author Share Posted September 8, 2007 I have researched how to make my htacess file but no luck. I am very confused. Is there anyone out there who can write this htacess for me? thanks Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/#findComment-344365 Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 RewriteEngine on RewriteBase / RewriteRule ^task/page/(.*).html /index.php?task=$1 [NC,L] Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/#findComment-344367 Share on other sites More sharing options...
darkknightgaury Posted September 8, 2007 Share Posted September 8, 2007 lol what kind of answer is that. I was interested in the answer adding a SEO so I came here. But I just saw something that made no sense to me. Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/#findComment-344383 Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 The question was: Is there anyone out there who can write this htacess for me? So I did. Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/#findComment-344384 Share on other sites More sharing options...
chmpdog Posted September 9, 2007 Author Share Posted September 9, 2007 ok, I had it working in a sub folder with this htacess: RewriteEngine on RewriteRule ^view/([0-9]+)/([a-zA-Z?-]+) index.php?task=view&id=$1&name=$2 [L] RewriteRule ^cat/([0-9]+)?/([a-zA-Z?-]+)/p([0-9]+) index.php?cat_id=$1&name=$2&page=$3 [L] RewriteRule ^profile/([0-9]+)?/([a-zA-Z?-]+) index.php?task=profile&id=$1&name=$2 [L] RewriteRule ^page/([0-9]+) index.php?task=view_page&id=$1 [L] RewriteRule ^task/register index.php?task=register [L] RewriteRule ^task/lost-password index.php?task=lost_pass [L] RewriteRule ^task/cr index.php?task=crazyeyes [L] RewriteRule ^task/login index.php?task=login [L] Now it only works a the sub folder I tried it on the root and it wont work. Its really weird. Whats Happening? PS : I tried the other htacess same problem Link to comment https://forums.phpfreaks.com/topic/68486-how-do-i-add-in-seo/#findComment-344518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.