Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Feedback and Suggestions (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=25)
-   -   seo urls (http://www.mysidiaadoptables.com/forum/showthread.php?t=3892)

powerchaos 12-05-2012 05:13 PM

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

Hall of Famer 12-05-2012 05:17 PM

Well the url rewrite for Admin Control Panel sorta follows the SEO friendly way. I will be doing this for the other script files too for future releases, so you can expect that no later than Mys v1.4.0.


All times are GMT -5. The time now is 04:36 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.