Dynamic URL rewriting using php and htaccess

Tutorials on PHP, databases and other aspects of web development. Before posting a question, check in here to see whether there's a tutorial that covers your problem.

Moderator: General Moderators

Post Reply
jprogrammerdevpjnet
Forum Newbie
Posts: 2
Joined: Sat Oct 05, 2013 4:49 am

Dynamic URL rewriting using php and htaccess

Post by jprogrammerdevpjnet »

http://seo.mysite.com/details.php?id=n
-----------------------------------------------
here n =1,2,3,..............

i want redirect it just like this

http://seo.mysite.com/details/idn
or
it will be better
http://seo.mysite.com/details/title.html

here title of specific id's

please do this using database.

I think it will be challenge for u

can anyone help me?
jprogrammerdevpjnet
Forum Newbie
Posts: 2
Joined: Sat Oct 05, 2013 4:49 am

Re: Dynamic URL rewriting using php and htaccess

Post by jprogrammerdevpjnet »

I want help from Moderators.

thanks.
User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Dynamic URL rewriting using php and htaccess

Post by Celauran »

It doesn't look like you want help at all, it looks like you want someone to do your homework for you. What have you tried so far? Show us your code. Where are you running into problems? What errors are you getting?
premtiwari
Forum Newbie
Posts: 1
Joined: Thu Mar 27, 2014 2:46 am

Re: Dynamic URL rewriting using php and htaccess

Post by premtiwari »

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteRule page-id-(.*)\.html$ page.php?id=$1
- See more at: http://freewebmentor.com/seo-friendly-u ... ccess.html
Post Reply