Thread: seo urls
View Single Post
  #1  
Old 12-05-2012, 05:13 PM
powerchaos's Avatar
powerchaos powerchaos is offline
WebMaster
 
Join Date: May 2008
Posts: 130
Gender: Male
Credits: 10,155
powerchaos
Send a message via AIM to powerchaos Send a message via MSN to powerchaos
Default seo urls

hi,
here is a small release for the htacces , would be nice if you could implant it

Code:
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:
Code:
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
Reply With Quote