|  | 
| 
 SEO Optimzation - Dynamic Pages coverting to static using .htaccess Here is my .htaccess :  Options +FollowSymLinks RewriteEngine on RewriteRule ^category/([0-9][0-9])$ http://www.domain-name.com/index.php?sbcat_id=$1 [R] RewriteRule ^category/([0-9][0-9])/$ http://www.domain-name.com/index.php?sbcat_id=$1 RewriteRule ^joke/([0-9][0-9][0-9])$ http://www.domain-name.com/index.php?sbjoke_id=$1 [R] RewriteRule ^joke/([0-9][0-9][0-9])/$ http://www.domain-name.com/index.php?sbjoke_id=$1 This works perfectly fine - however when I change it to : Options +FollowSymLinks RewriteEngine on RewriteRule ^category/([0-9][0-9])$ http://www.domain-name.com/index.php?sbcat_id=$1 [R] RewriteRule ^category/([0-9][0-9])/$ http://www.domain-name.com/index.php?sbcat_id=$1 RewriteRule ^joke/([0-9][0-9][0-9][0-9])$ http://www.domain-name.com/index.php?sbjoke_id=$1 [R] RewriteRule ^joke/([0-9][0-9][0-9][0-9])/$ http://www.domain-name.com/index.php?sbjoke_id=$1 I run into problems ... I am assuming I can't use [0-10000] etc, al ... Since I am only running into a problem when adding the 4th digit there has to be a 'programming' reason why, any programmers here have any idea ? | 
| 
 Why not do something like: RewriteRule ^joke/([0-9]+)/$ http://www.domain-name.com/index.php?sbjoke_id=$1 | 
| 
 Do a search for htacces Someone did a post a little while ago that really covered it well. | 
| 
 Quote: 
 | 
| 
 Quote: 
 | 
| 
 cool but... as I know google reads dynamic pages already... or I'm wrong ? | 
| 
 Also you might want to consider this: RewriteRule ^joke/([0-9]+)/?$ http://www.domain-name.com/index.php?sbjoke_id=$1 Note the ? sign after / and before $ It should look like this: RewriteRule ^category/([0-9]+)/?$ http://www.domain-name.com/index.php?sbcat_id=$1 [R] RewriteRule ^joke/([0-9]+)/?$ http://www.domain-name.com/index.php?sbjoke_id=$1 [R] This way you need only two lines instead of four but get the same functionality... | 
| 
 Oops, sorry did not see the [R] at the end :) My previous post is not 100% accurate... I see you're trying to redirect the URLs without the trailing slash to a correct URL. RewriteRule ^(category|joke)/([0-9]+)$ http://www.domain-name.com/$1/$2/ [R=301] RewriteRule ^category/([0-9][0-9])/$ http://www.domain-name.com/index.php?sbcat_id=$1 RewriteRule ^joke/([0-9][0-9][0-9])/$ http://www.domain-name.com/index.php?sbjoke_id=$1 This would be the correctly optimized form... Note the [R=301] part, which forces the 301 response for your redirect... I assumed you want to redirect the /category/999 URLs to /category/999/ don't you? With your code you were redirecting it to /index.php?sbcat_id=999 | 
| 
 Ahh nice. Cloaking Variant. Watch yer selves. | 
| 
 this post was great! exactly what i needed atm! :thumbsup | 
| 
 Why would this be cloaking? It's a standard procedure to convert those messy queries to human readable URLs. | 
| 
 Could you show me an example how that looks on a site? | 
| 
 yo booyakasha stop with the htaccess jokes. they is over my head. | 
| 
 "I assumed you want to redirect the /category/999 URLs to /category/999/ don't you? With your code you were redirecting it to /index.php?sbcat_id=999" Sweet - that was the next issue I planned on tackling.. it was refreshing /category/999 to the /index.php?sbcat_id=999 format after putting it in the browser initially... To the person who asked if Google indexes Dynamic pages, Shame on you!!! Just Kidding.. My ass got cased on HARD when I started a post about the subject a bit back .. From what I have learned the last couple weeks of research they do, however they do not do it well at all. Google has hit my site with 2,450 requests and only indexed my index.html page. I think it is because EVERYTHING else on the site is dynamic - this will hopefully fix that problem. Of course now my MySQL DB got screwed up somewhere along the lines last night and I have to figure out what I did there now .. No wonder I never get anything done, get something done just in time to break something that takes twice as logn to fix! | 
| 
 How the hell did you break mySQL DB with mod_rewrite? :) | 
| 
 Quote: 
 be careful guys. | 
| 
 Quote: 
 | 
| 
 ........ | 
| 
 Quote: 
 | 
| 
 Debatable is putting it mildly - http://www.gfy.com/showthread.php?t=...ogle+index+php is the last thread I started before I made the decision to clean my urls .....  Touchy Subject? Possibly A Reason? I must be an asswipe to ask such a question, spending 30 hours researching it was 100X as productive - no information is free nowadays, outside the VERY BASICS ;) A little bit of competition does good for a few reasons, can you guess? ;) | 
| 
 Quote: 
 | 
| 
 Apart of being SE friendly, they're also human friendly. People will easier remember http://www.somedomain.com/category/category-name.html than http://www.somedomain.com/index.php?...objectid=55725 | 
| 
 Best of luck to you on this 1 guy. | 
| 
 Quote: 
 http://www.domainname.com/script.php?xxxx etc At the ? mark the search engines stop reading... at least a great deal of them do | 
| 
 Quote: 
 | 
| All times are GMT -7. The time now is 09:54 PM. | 
	Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
	©2000-, AI Media Network Inc123