zhangy Posted June 5, 2009 Share Posted June 5, 2009 Ok, does anyone know a way to alter url's using php in order to make your /typical-search-engine-friendly/ url? Currently my urls look something like the following: http://site.com/entry.php?id=1769 Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/ Share on other sites More sharing options...
Wolphie Posted June 5, 2009 Share Posted June 5, 2009 You should use mod_rewrite in a .htaccess file on your server. Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-849809 Share on other sites More sharing options...
dreamwest Posted June 5, 2009 Share Posted June 5, 2009 Options +FollowSymLinks RewriteEngine on RewriteRule ^fake/(.*) entry.php?id=$1 Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-849810 Share on other sites More sharing options...
zhangy Posted June 5, 2009 Author Share Posted June 5, 2009 Wolphie I contacted my host and they said they couldnt alter a .htaccess file because its a windows server or something. dreamwest where does that neat little code go? Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-849829 Share on other sites More sharing options...
dreamwest Posted June 5, 2009 Share Posted June 5, 2009 Yeah this is htaccess Umm if you want a successfull website change to linux server, you can do sweet things with it and theres alot more support Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-849929 Share on other sites More sharing options...
ldougherty Posted June 5, 2009 Share Posted June 5, 2009 On a windows server you would need a module installed on the server such as ISAPI_REWRITE which allows you to create rewrite rules such as mod_rewrite. http://www.isapirewrite.com/ Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-849931 Share on other sites More sharing options...
zhangy Posted June 6, 2009 Author Share Posted June 6, 2009 Now the say the control panel (H-SPHERE) doesn`t support ISAPI_rewrite modules. What the hell? Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-850406 Share on other sites More sharing options...
trq Posted June 6, 2009 Share Posted June 6, 2009 What version of IIS is your host using? IIS7 supports url rewritting. Otherwise, your out of luck unless you switch to an Apache server or ask your hosting provider to install isapi rewrite. Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-850408 Share on other sites More sharing options...
zhangy Posted June 6, 2009 Author Share Posted June 6, 2009 Any recommendations for a decent/affordable server? I just need hosting for a personal blog and a small classifieds jobs site. Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-850512 Share on other sites More sharing options...
dreamwest Posted June 6, 2009 Share Posted June 6, 2009 Im using servage, 750GB storage, 7500GB transfer allowance all for 100 buck a year - my best server host EVER! http://www.servage.net/?coupon=cust46358 Link to comment https://forums.phpfreaks.com/topic/161030-solved-url-rewriting-noobish/#findComment-850722 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.