Thread: Major Additions - Links and Downloads Manager
View Single Post
  #1255  
Old 02-26-2007, 04:19 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mupetz View Post
AndrewD, the mod_rewrite (admin settings field), what is supposed to do ?
If the seo friendly option is enabled and the rewrite conditions are given to the .htaccess file or directly to http.conf file ; what mod_rewrite field should do ?

I deleted all other .htaccess rules (from vbseo , etc) to see if it is a conflict or not. It doesn't work even with the proper rules you quoted ; so it must be the script/commands.

Does anybody made it work with .htaccess rules ?
Please anwser.
Sorry, we're going round in circles with this.

For me, the SEO features of LDM work fine with the htaccess rules I sent you (and which are now in the Wiki), and also works with (very similar) rules in http.conf.

The SEO features work at two levels:
- you tell LDM to generate SEO-friendly links (i.e. yoursite/forum/local_links/link/12/3 instead of yoursite/forum/local_links.php?catid=12&linkid=3) by setting the seo_friendly option on the LDM admin page
- you tell Apache how to process these links by the rules in http.conf/.htaccess.

It seems your problem is in step 2. The only way to get to the bottom of it is by step-by-step debugging of your Apache setup. The easiest way is with a combination of RewriteLog and RewriteLogLevel commands (see apache documentation). But maybe you cannot do this on your server, in which case, it's a matter of trial and error - add one line at a time until you discover what breaks.

The LDM admin setting "mod_rewrite" is confusing things, I think. This has absolutely nothing to do with search engine optimisation - turn it off - you should not be using it. It was added to LDM to implement a few of the functions of the Apache module. Its purpose is explained in the Wiki (see http://www.eirma.org/wikis/index.php/Hacking_LDM). It modifies 'on the fly' the hidden urls that are stored in your LDM database, at the instant before someone tries to visit one of them. Suppose (for example) you've set up a lot of LDM entries pointing to files at http://site1 and they've all moved temporarily to http://site2. Instead of editing your whole database, you can just turn on LDM's mod_rewrite, with a rule to translate site1 to site 2. As I said, turn it off, you don't need it.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01068 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete