vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v1.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2008, 05:53 PM
Crimm Crimm is offline
Member
 
Join Date: Oct 2007
Posts: 36
Default .htaccess question for search friendly URL's

Hi there

So ... I want dynamics to be in the root of my web folder and have vB be in a forum sub directory.

The question I have is that when I turn on Spider Friendly URL's and use the provided .htaccess ... I can't get to the forums anymore, because the .htaccess is trying to rewrite it.

Here's the current .htaccess:

Code:
Options +FollowSymlinks
RewriteRule ^([a-zA-Z_0-9\-]+)/robots\.txt$ robots.txt [QSA,L]
RewriteRule ^members/page([0-9]+).html$ index.php?page=$1 [QSA,L]
RewriteRule ^whatsnew/entries/([0-9]+)/page([0-9]+).html$ /browsecategory.php?do=newentries&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/entries/(([0-9]|-)+/?)$ /browsecategory.php?do=newentries&cutoffdate=$1 [QSA,L]
RewriteRule ^whatsnew/entries/?$ /browsecategory.php?do=newentries [QSA,L]
RewriteRule ^whatsnew/posts/([0-9]+)/page([0-9]+).html$ /browsecategory.php?do=newposts&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/posts/([0-9]+)$ /browsecategory.php?do=newposts&cutoffdate=$1 [QSA,L]
RewriteRule ^whatsnew/posts/?$ /browsecategory.php?do=newposts [QSA,L]
RewriteRule ^whatspopular/([a-zA-Z_0-9\-]+)/$ /browsecategory.php?do=popentries&orderby=$1 [QSA,L]
RewriteRule ^members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ /browsecategory.php?do=member&userrewrite=$1&page=$2 [QSA,L]
RewriteRule ^members/(([a-zA-Z_0-9]|-)+/?)$ /browsecategory.php?do=member&userrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ /browsecategory.php?userrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/(([a-zA-Z_0-9]|-)+/?)$ /browsecategory.php?userrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/(([a-zA-Z_0-9]|-)+)/$ showentry.php?entryrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/epage([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&epage=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/page([0-9]+).html$ /browsecategory.php?catrewrite=$1&page=$2 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/?$ /browsecategory.php?catrewrite=$1 [QSA,L]
I tried adding exceptions by adding the following rule at the top:

Code:
RewriteCond %{REQUEST_URI} !/forum [NC]
and

Code:
RewriteCond %{REQUEST_URI} !^/forum [NC]
With and without a trailing slash

and I tried:

Code:
RewriteRule ^/forum - [L]
Since I don't know rewrite rules good enough ... I'm stabbing in the dark here.

Can anyone help me out?

Thank you.
Reply With Quote
  #2  
Old 05-02-2008, 03:11 PM
Crimm Crimm is offline
Member
 
Join Date: Oct 2007
Posts: 36
Default Re: .htaccess question for search friendly URL's

I ended up just moving my dynamics to a subcategory.
Reply With Quote
  #3  
Old 06-04-2008, 12:54 AM
Crimm Crimm is offline
Member
 
Join Date: Oct 2007
Posts: 36
Default Re: .htaccess question for search friendly URL's

I figured out this issue tonight, so I thought I would post here in case someone has the same issue.

If you are trying to put the dynamics in the root directory and use the SEO .htaccess file, then you will find that your forum directory also get's caught up in the .htaccess rewriterules.

To combat this add this line:

rewriterule ^forum/ - [L]

Directly under the rewrite engine on line. Like this:

Options +FollowSymlinks
RewriteEngine On
rewriterule ^forum/ - [L]

Where forum stands for the subdirectory where your forum is located.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spider Friendly / SEO URL's Not Working? Kaelon Troubleshooting & Problems 7 09-01-2007 12:09 PM
Next and Previous Page links on showentry with Spider Friendly URL's turned on Shon Troubleshooting & Problems 3 08-13-2007 01:44 PM
Search Engine Friendly GuyFromChicago Pre-Sale Questions 16 11-25-2006 04:02 PM
More descriptive (SE friendly) url's without '?' surfdude "How Do I..." Questions 2 08-18-2005 01:44 PM
search engine friendly? bangthebook Modifications 4 02-28-2005 11:10 PM


All times are GMT -4. The time now is 03:07 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.