powerchaos
12-05-2012, 05:13 PM
hi,
here is a small release for the htacces , would be nice if you could implant it
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)/([a-zA-Z0-9_-]+)\.gif$ siggy.php?id=$1
RewriteRule ^([0-9]+)/([a-zA-Z0-9_-]+)$ levelup.php?id=$1
the above code will provide the following urls
http://pets.demonpower.com/1/Test_Egg ( levelup )
http://pets.demonpower.com/1/Test_Egg.gif ( image )
as you can see , it does work exept the template can not follow on the levelup link
maybe it is a nice start to work this way :D
as seo is needed those days and the links just looks better then those complicated looking links ( levelup.php?id=x )
ps:
Options +FollowSymLinks
that code does not need on all apache versions , depending on host you need it or not for seo urls to be able to work
Greetings From PowerChaos
here is a small release for the htacces , would be nice if you could implant it
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)/([a-zA-Z0-9_-]+)\.gif$ siggy.php?id=$1
RewriteRule ^([0-9]+)/([a-zA-Z0-9_-]+)$ levelup.php?id=$1
the above code will provide the following urls
http://pets.demonpower.com/1/Test_Egg ( levelup )
http://pets.demonpower.com/1/Test_Egg.gif ( image )
as you can see , it does work exept the template can not follow on the levelup link
maybe it is a nice start to work this way :D
as seo is needed those days and the links just looks better then those complicated looking links ( levelup.php?id=x )
ps:
Options +FollowSymLinks
that code does not need on all apache versions , depending on host you need it or not for seo urls to be able to work
Greetings From PowerChaos