How To Rewrite URL in php using htaccess file with slug
$10-30 USD
Pagado a la entrega
I have a just a little problem in getting my SLUG to work...
All my files are in the same DIR.
I'm trying to clean up my URL.
FROM THIS
http://localhost/project/[url removed, login to view]
TO THIS
http://localhost/project/post/come-ge-me-then
This is what i have on ([url removed, login to view])
<?php echo "<a href='post/$slug'>$title</a>"?
This is what i have on [url removed, login to view]
$slug = $_GET['slug'];
$sql = "select * from blog WHERE slug='$slug'";
This is what i have in my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ $[url removed, login to view]
RewriteRule ^post/(.*)$ [url removed, login to view]$1 [L]
</IfModule>
Let me know if you can help for free or if you want some amount.
Thanks
Nº del proyecto: #5307320
Sobre el proyecto
14 freelancers están ofertando un promedio de $37 por este trabajo
Hello, With 99% completion rate, 650+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 !!)... you can never go wrong choosing me :) I look forward to your reply. Más
Hello, apart from the slug I would also suggest that you take a look at sql injection. It is important that the input $_GET['slug'] is sanitised.
I've great experience working with .htaccess file with various rewrite rules. I can help you with this project. Looking forward to hear from you.
Dear Sir/Madam, We are already read your project description & fully understand this project for you. We are offering best price in this market & providing best quality of work for you. Please check your PMB for more d Más
Hi there, there definitely are people that would help you on this for free but you posted it on wrong website. For the cost, you can contact me. Thanks
I have plenty of experience on server managment, wordpress and URL rewriting. I can help you with this issue. Check my bid and contact me if interested. Thanks for your time
Now I understand what the problem is, this is not so easy to fix, I hope you find someone who already fixed this problem. I personally would install a test-blog on my own server and then try to fix this problem, but th Más
your job is too simple, if you were on my facebook list id make it for free even if i dont know you :) after this job i can help you with other problems you can encounter
Hi we are a team of freelance software developers, if you contact me at our website we can discuss the details of the project. w w w . sol v e r . i o
Hi, I am a PHP eCommerce developer in my day job with over 10 years experience in PHP and Rewrite Rules. In my day job I develop and maintain an international eCommerce site with zero downtime, and it has over 100 rewr Más