|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  11-18-2005, 01:46 AM | #1 | 
| Confirmed User Join Date: Sep 2004 Location: Central IL 
					Posts: 985
				 | 
				
				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 ? | 
|   |           | 
|  11-18-2005, 01:51 AM | #2 | 
| Confirmed User Join Date: Nov 2005 Location: Edmonton, AB 
					Posts: 190
				 | Why not do something like: RewriteRule ^joke/([0-9]+)/$ http://www.domain-name.com/index.php?sbjoke_id=$1 | 
|   |           | 
|  11-18-2005, 01:54 AM | #3 | 
| So Fucking Banned Join Date: Oct 2002 Location: MaxCash.com 
					Posts: 12,745
				 | Do a search for htacces Someone did a post a little while ago that really covered it well. | 
|   |           | 
|  11-18-2005, 02:00 AM | #4 | |
| Confirmed User Join Date: Sep 2004 Location: Central IL 
					Posts: 985
				 | Quote: 
 | |
|   |           | 
|  11-18-2005, 02:10 AM | #5 | |
| Confirmed User Join Date: Nov 2005 Location: Edmonton, AB 
					Posts: 190
				 | Quote: 
 | |
|   |           | 
|  11-18-2005, 03:57 AM | #6 | 
| Confirmed User Join Date: Dec 2004 Location: 164924664 
					Posts: 3,527
				 | cool but... as I know google reads dynamic pages already... or I'm wrong ? | 
|   |           | 
|  11-18-2005, 04:59 AM | #7 | 
| Confirmed User Join Date: Jun 2004 
					Posts: 689
				 | 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... 
				__________________ Webmasters! Looking for new affiliate programs to promote? Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ... | 
|   |           | 
|  11-18-2005, 05:08 AM | #8 | 
| Confirmed User Join Date: Jun 2004 
					Posts: 689
				 | 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 
				__________________ Webmasters! Looking for new affiliate programs to promote? Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ... | 
|   |           | 
|  11-18-2005, 05:09 AM | #9 | 
| best designer on GFY Join Date: Mar 2003 Location: IALIEN.COM - High Definition Video and Photographic Productions -ICQ 78943384 
					Posts: 30,307
				 | Ahh nice. Cloaking Variant. Watch yer selves. 
				__________________   NAKED HOSTING FTW!11 I'm On The INSANE PLAN $9.95/mo! | The Alien Blog Adult News Worth Reading Updated Daily | Content For Sale! 641 PICS 216 MINUTES OF VIDEO $350.00 |ICQ: 78943384 | | 
|   |           | 
|  11-18-2005, 05:26 AM | #10 | 
| Biz Dev and SEO Industry Role:  Join Date: Jun 2005 
					Posts: 15,181
				 | this post was great! exactly what i needed atm!   
				__________________ --- Busy ranking websites on Google...   | 
|   |           | 
|  11-18-2005, 05:33 AM | #11 | 
| Confirmed User Join Date: Jun 2004 
					Posts: 689
				 | Why would this be cloaking? It's a standard procedure to convert those messy queries to human readable URLs. 
				__________________ Webmasters! Looking for new affiliate programs to promote? Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ... | 
|   |           | 
|  11-18-2005, 05:49 AM | #12 | 
| Confirmed User Join Date: May 2005 
					Posts: 1,885
				 | Could you show me an example how that looks on a site? | 
|   |           | 
|  11-18-2005, 06:52 AM | #13 | 
| Confirmed User Join Date: Jun 2004 Location: buffalo, las vegas. icq: 285808879 
					Posts: 4,796
				 | yo booyakasha stop with the htaccess jokes. they is over my head. | 
|   |           | 
|  11-18-2005, 07:16 AM | #14 | 
| Confirmed User Join Date: Sep 2004 Location: Central IL 
					Posts: 985
				 | "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! | 
|   |           | 
|  11-19-2005, 02:20 AM | #15 | 
| Confirmed User Join Date: Jun 2004 
					Posts: 689
				 | How the hell did you break mySQL DB with mod_rewrite?   
				__________________ Webmasters! Looking for new affiliate programs to promote? Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ... | 
|   |           | 
|  11-19-2005, 02:25 AM | #16 | |
| Confirmed User Industry Role:  Join Date: Mar 2003 Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::::::::::::::: 
					Posts: 7,197
				 | Quote: 
 be careful guys. 
				__________________ Amen | |
|   |           | 
|  11-19-2005, 02:29 AM | #17 | |
| Confirmed User Industry Role:  Join Date: Nov 2005 
					Posts: 8,170
				 | Quote: 
 | |
|   |           | 
|  11-19-2005, 02:39 AM | #18 | 
| Confirmed User Join Date: Mar 2003 
					Posts: 365
				 | ........ | 
|   |           | 
|  11-19-2005, 02:41 AM | #19 | |
| Confirmed User Join Date: Nov 2005 Location: Edmonton, AB 
					Posts: 190
				 | Quote: 
 | |
|   |           | 
|  11-19-2005, 03:07 AM | #20 | 
| Confirmed User Join Date: Sep 2004 Location: Central IL 
					Posts: 985
				 | 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? ;) | 
|   |           | 
|  11-19-2005, 03:21 AM | #21 | |
| Confirmed User Join Date: Nov 2005 Location: Edmonton, AB 
					Posts: 190
				 | Quote: 
 | |
|   |           | 
|  11-19-2005, 05:41 AM | #22 | 
| Confirmed User Join Date: Jun 2004 
					Posts: 689
				 | 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 
				__________________ Webmasters! Looking for new affiliate programs to promote? Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ... | 
|   |           | 
|  11-19-2005, 05:55 AM | #23 | 
| I can change this!!!!! Join Date: Feb 2004 
					Posts: 18,972
				 | Best of luck to you on this 1 guy. | 
|   |           | 
|  11-19-2005, 04:25 PM | #24 | |
| Confirmed User Join Date: Sep 2004 Location: Central IL 
					Posts: 985
				 | 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 
				__________________ ICQ : 253483920 DICK.IN | RXAR.COM - ICQ OFFERS | |
|   |           | 
|  11-19-2005, 07:47 PM | #25 | |
| RIP Dodger. BEST.CAT.EVER Industry Role:  Join Date: Dec 2002 Location: NYC Area 
					Posts: 18,450
				 | Quote: 
      
				__________________ -uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! | |
|   |           |