I had different kind of categories to mysite.I will update my website everyday.I know one method to convert all dynamic to static urls by manually writing code for each page but its a tedious job.
I observed some sites belong to my niche having perfect static urls and also i observed that all urls are equal to the heading of the article or the gallary name.
so i am curious to know that is there any way to convert the heading of the page to url of the page in htaccess like
i used hxxt instead of http
Dynamic Url:hxxp://www.mysite.com/news_details.php?newsid=15
heading of the article title: is michael jackson still alive?
desired Static url :hxxp://www.mysite.com/is-michael-jackson-still-alive.html
code:
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /news_details\.php\?newsid=15\ HTTP/
RewriteRule ^news_details\.php$ [
mysite.com...] [R=301,L]
RewriteRule ^is-michael-jackson-still-alive.html$ /news_details.php?newsid=15 [L]
The following are my site dynamic categories
hxxp://www.mysite.com/imagecat.php?catid=1&subcatid=195
hxxp://www.mysite.com/imagecat.php?catid=2&subcatid=200
hxxp://www.mysite.com/imagecat.php?catid=3&subcatid=171
final image pages
hxxp://www.mysite.com/image.php?imgid=3196&subcatid=171
hxxp://www.mysite.com/image.php?imgid=3728&subcatid=200
other categories
hxxp://www.mysite.com/mobilewalpaprcategory.php?mobilcatid=1
hxxp://www.mysite.com/mobilewallpapers.php?mobilsubcatid=9
hxxp://www.mysite.com/mobilewallpapers.php?mobilimgid=208&&mobilsubcatid=10
hxxp://www.mysite.com/gallery.php?galerycatid=152
hxxp://www.mysite.com/movie_review.php?rvid=41
I had about 10,000 pages in my site.which is the best method of converting from static url to dunamic urls in my case.whether i have supposed to goto the manual rewrite for all 10,000 pages or is there any shortcut to achive this.
If i suppose to add 10,000 codes in my htaccess i am planning the following code