IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> what did you do to php?
Lehrer
post May 27 2005, 11:31 AM
Post #16


Hostony staff


Group: Members
Posts: 1093
Joined: 7-October 04
Member No.: 1105



artrocity, we have fixed the problem as promised. The links are already working, please check:

http://dmoz.artrocity.com/OpenDMOZ/Science/Biology/


http://dmoz.artrocity.com/OpenDMOZ/Recreation/Food/

http://dmoz.artrocity.com/OpenDMOZ/Home/Co...er_Information/

http://dmoz.artrocity.com/OpenDMOZ/Arts/


etc... ph34r.gif
Go to the top of the page
 
+Quote Post
artrocity
post May 27 2005, 12:02 PM
Post #17


Not So Junior Member


Group: Members
Posts: 249
Joined: 1-June 03
Member No.: 185



thanks for looking into this.

I had got the page script working again on TUES Night
by approaching the rewrite differently.

The original rules were like...
RewriteRule ^OpenDMOZ(.*)/(.*).html index.php/$1/$2.html

basically just replacing index.php w the openDMOZ
this worked for a year and generated the 15,000+ links in google.

but the new php did not like that so
I changed the script and the rules so that index.php now takes a variable
RewriteRule ^OpenDMOZ(.*) index.php?c=$1


thanks again ...
Go to the top of the page
 
+Quote Post
MartinB
post May 27 2005, 12:42 PM
Post #18


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



QUOTE(artrocity @ May 27 2005, 09:02 AM)
thanks for looking into this.

I had got the page script working again on TUES Night
by approaching the rewrite differently.

The original rules were like...
RewriteRule ^OpenDMOZ(.*)/(.*).html index.php/$1/$2.html

basically just replacing index.php w the openDMOZ
this worked for a year and generated the 15,000+ links in google.

but the new php did not like that so
I changed the script and the rules so that index.php now takes a variable
RewriteRule ^OpenDMOZ(.*) index.php?c=$1
thanks again ...
*



you get 15000+ links in google to your domain using DWodp live ?


--------------------
Go to the top of the page
 
+Quote Post
artrocity
post May 27 2005, 05:22 PM
Post #19


Not So Junior Member


Group: Members
Posts: 249
Joined: 1-June 03
Member No.: 185



QUOTE(mblendinger @ May 27 2005, 08:42 AM)
you get 15000+ links in google to your domain using DWodp live ?
*

Yep Dwop live and mod-rewrite
Thats why i was *concerned* about keeping those links alive...

site:dmoz.artrocity.com "dmoz.artrocity.com"
http://www.google.com/search?q=+site:dmoz....coff=1&filter=0

Generates a little google money dayin dayout
not enough to retire on tongue.gif
but every bit helps
Go to the top of the page
 
+Quote Post
MartinB
post May 27 2005, 05:37 PM
Post #20


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



Interesting...

money? VERY interesting.... i think i will try it wink.gifwink.gifwink.gif

(coming soon... http://dmoz.wizhosting.com/ biggrin.gif )


--------------------
Go to the top of the page
 
+Quote Post
MartinB
post May 27 2005, 06:37 PM
Post #21


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



(hum....is this a "Legal" practice ? ph34r.gif )


--------------------
Go to the top of the page
 
+Quote Post
artrocity
post May 27 2005, 08:51 PM
Post #22


Not So Junior Member


Group: Members
Posts: 249
Joined: 1-June 03
Member No.: 185



QUOTE(mblendinger @ May 27 2005, 02:37 PM)
(hum....is this a "Legal" practice ?  ph34r.gif  )
*

http://www.dominion-web.com/products/dwodp_live/
DWodp live makes use of Netscape's Open Directory which is free to use so long you follow their license.

http://dmoz.org/become_an_editor/
Open Directory Attribution
The following attribution HTML must be included on all web pages that use Open Directory content, as described in the Open Directory license.

Thats it... Free... Open source
Just give credit where credit is due...
Go to the top of the page
 
+Quote Post
Lehrer
post May 28 2005, 09:13 AM
Post #23


Hostony staff


Group: Members
Posts: 1093
Joined: 7-October 04
Member No.: 1105



thanks for looking into this.


You are welcome, artrocity. We have also upgraded Zend Optimizer on the server to the latest version.
Go to the top of the page
 
+Quote Post
MartinB
post May 30 2005, 12:17 PM
Post #24


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



So, Artrocity, is a .htaccess with:

CODE
RewriteRule ^OpenDMOZ(.*) index.php?c=$1


and nothing more?

Greetings smile.gif
you can give a look to http://dmoz.wizhosting.com/ wink.gif


--------------------
Go to the top of the page
 
+Quote Post
artrocity
post May 30 2005, 01:19 PM
Post #25


Not So Junior Member


Group: Members
Posts: 249
Joined: 1-June 03
Member No.: 185



QUOTE(mblendinger @ May 30 2005, 08:17 AM)
So, Artrocity, is a .htaccess with:

CODE
RewriteRule ^OpenDMOZ(.*) index.php?c=$1


and nothing more?

Greetings  smile.gif
you can give a look to http://dmoz.wizhosting.com/ wink.gif
*


I knew you'd ask this... rolleyes.gif
There are always TWO parts of rewrtiting urls in a script.
1) .htaccess Rewrite Rules
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^OpenDMOZ$ index.php
RewriteRule ^OpenDMOZ(.*) index.php?c=$1

2) changing the script to write the Search engine friendly urls.
I think there are 4 places in the script they need to be modified.

$html = str_replace ("index.php?c=", "OpenDMOZ", $html);
$finalhtml = $MainHeader . $html . $MainFooter;
echo $finalhtml;

and one just like it for the var $breadcrumb

Now I made one more mod to the script that helps w/ the SE
I put a var in the <HEAD> tags.

see http://dmoz.artrocity.com/OpenDMOZ/Health/...n-Toxic_Living/
and look at the <HEAD> and <keywords>
I leave that as an exercise to the student !
laugh.gif
Go to the top of the page
 
+Quote Post
MartinB
post May 30 2005, 01:30 PM
Post #26


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



biggrin.gif biggrin.gif biggrin.gif biggrin.gif

Thank you very much for spent your time in me, I think now i have all parts of the puzzle wink.gif


--------------------
Go to the top of the page
 
+Quote Post
MartinB
post May 30 2005, 02:36 PM
Post #27


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



All done smile.gif

Thanks again, I have made a "Thanks to artrocity.com" link to your site in my footer.
greetings.

Maybe now i will get a little best results in google for wizhosting dry.gif rolleyes.gif


--------------------
Go to the top of the page
 
+Quote Post
artrocity
post May 30 2005, 07:30 PM
Post #28


Not So Junior Member


Group: Members
Posts: 249
Joined: 1-June 03
Member No.: 185



thanks for the acknowledgement!

Plus I see you got the keywords and <head> variables set.
NICE !!!

You get an A for the Day !!!
laugh.gif

Glad I could help...
Go to the top of the page
 
+Quote Post
MartinB
post May 30 2005, 07:39 PM
Post #29


Super Member


Group: Members
Posts: 1804
Joined: 10-March 04
From: Cordoba, Argentina
Member No.: 554



wink.gif


--------------------
Go to the top of the page
 
+Quote Post
ser_pros
post May 30 2005, 11:58 PM
Post #30


Hostony staff


Group: Members
Posts: 214
Joined: 11-November 04
Member No.: 1165



laugh.gif biggrin.gif rolleyes.gif wink.gif
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic
5 User(s) are reading this topic (5 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 18th July 2018 - 12:43 PM