DeanHemm Posted July 28, 2015 Share Posted July 28, 2015 I'm new to the .htaccess as a whole, could someone please tell me how to turn a URL such as http://ayodax.site88.net/shortener/?id=82ec9eee into http://ayodax.site88.net/shortener/82ec9eee please? Quote Link to comment Share on other sites More sharing options...
maxxd Posted July 28, 2015 Share Posted July 28, 2015 I haven't read the entirety of this article yet, but it should get you pointed in the right direction. Quote Link to comment Share on other sites More sharing options...
DeanHemm Posted July 28, 2015 Author Share Posted July 28, 2015 Hi, thanks for you response, however I've implemented Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(\w+)$ index.php?id=$1and it still doesn't work correctly, any idea why? Quote Link to comment Share on other sites More sharing options...
maxxd Posted July 28, 2015 Share Posted July 28, 2015 Is mod_rewrite is enabled on your server? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted July 28, 2015 Share Posted July 28, 2015 If you are expecting mod rewrite to change the links for you then you are wrong. You have to edit your code to output the links in the new url format Quote Link to comment Share on other sites More sharing options...
maxxd Posted July 28, 2015 Share Posted July 28, 2015 Good point, Ch0cu3r. It's not going to magically make the links pretty, but it will interpret pretty urls in the same way as the traditional links. Now, you'll probably have to employ a routing system as well. Quote Link to comment Share on other sites More sharing options...
DeanHemm Posted July 28, 2015 Author Share Posted July 28, 2015 How would I go about doing this? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted July 29, 2015 Share Posted July 29, 2015 How would I go about doing this? You will have to go through the source code for your php scripts and find where that link is being created, then change the url for the link to the new format. 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.