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 Quote Link to comment Share on other sites More sharing options...
benjaminbeazy Posted September 8, 2007 Share Posted September 8, 2007 use mod_rewrite in .htaccess file Quote Link to comment 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 Quote Link to comment 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] Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 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.