Hello All, Need help on HTMLizing biz_directory script. Can anyone point where can I get the code and htaccess ? Thanks in advance.
try something like this RewriteEngine on RewriteRule ^([0-9]+).php$ index.php?c=$1& [L] RewriteRule ^([0-9]+)add.php$ add_url.php?c=$1& [L] Code (markup): or check this forum and search for biz-directory http://www.mod-rewrite.com/forum/ And check if your server supports mod-rewrite.
I think it is.. On the server that runs that mod_rewrite forum are sites running like acme-tools.com , at that site are many links to seo-guy. (reverse ip) Also the ip adress is 3 numbers from seo-guy server.. .. .. 71.68 / .. .. 71.71
Yes, but only recently. [ Never had time to research on it ] Here is what you have to do. This document is traslated ( and also altered according to my needs ) from german. http://www.modrewrite.de/foren/ftopic564.html Index.php Page Modification: ================= Line 41 $category_url = $dir.'index.php?c='.$parent_categories[$x]["id"]; Replace with: $category_url = $dir.$parent_categories[$x]["id"].'-directory.html'; -------------------------------- Line 60 $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]); Replace with: $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$subcategories[$x]["id"].'-directory.html'); -------------------------------- Line 66 $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]); Replace with: $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$subcategories[$x]["id"].'-directory.html'); -------------------------------- Line 76 $replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.'add_url.php?c='.$c); Replace with: $replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.$c.'-add-url.html'); -------------------------------- Line 110 if ($c != 1) { $query = "index.php?c=$c"; }; if (($c != 1) & $s != 1){ $query .= "&s=$s"; }elseif ($s != 1){ $query = "index.php?s=$s"; }; Replace with: if ($c != 1) { $query = "$c-directory.html"; }; if (($c != 1) & $s != 1){ $query = "$c-$s-directory.html"; }elseif ($s != 1){ $query = "$c-$s-directory.html"; }; Modification of add_url.php Page. ======================== Line 41: $category_url = $dir.'index.php?c='.$parent_categories[$x]["id"]; Replace with: $category_url = $dir.$parent_categories[$x]["id"].'-directory.html'; Addition to Htaccess ====================== RewriteEngine On RewriteRule index.html$ /index.php [PT] RewriteRule ^([0-9]+)-directory.html$ /index.php?c=$1 RewriteRule ^([0-9]+)-directory.html$ /index.php?s=$1 RewriteRule ^([0-9]+)-([0-9]+)-directory.html$ /index.php?c=$1&s=$2 RewriteRule ^([0-9]+)-add-url.html$ /add_url.php?c=$1 Code (markup): See it working here : www.directoryone.info Regards, Tuning
Hi Webhost, How do you changed the template of alldotnet ? I tried all 10hrs today to change the template. But failed. The main thing is that where to put tables ? I tried editing index_template.php but no luck! Anyidea ? I just want to make this site similar looking to www.directorysubmission.net Regards, Tuning
Have you looked at each template block that is saved in a PHP variable, for instance: $TEMPLATE["HEADING"] = <<<EOF Here the editable text! EOF;
I really can't get this to work , I changed everything in the files and made a new .htacces (in the subdirectory where the script is installed) but when I click a ategory it just says file not found. Did I make the .htacces correcy by just pasting the rewrite rules code into a blank file and saving it as .htacces ? Help me please
I think you are using Apache 2. I have no idea about mod_rewrite and Apache 2. Perhaps that can be the problem. Have to ask Nintendo. You can also PM him more about this. Sorry.
I'm on 2.0.46. I don't know anything about that script, just at changing URLs.... Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule index.html$ index.php [PT] RewriteRule ^([^.]+)-([^.]+)-directory.html$ index.php?c=$1&s=$2 RewriteRule ^([^.]+)-directory.html$ index.php?c=$1 RewriteRule ^([^.]+)-directory.html$ index.php?s=$1 RewriteRule ^([^.]+)-add-url.html$ add_url.php?c=$1 If for example changing index.php?s=WHATEVER to WHATEVER-directory.html