vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 12 of 12

move rewrite rules from .htaccess to httpd.conf

This is a discussion on move rewrite rules from .htaccess to httpd.conf within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I tried to move rewrite rules from .htaccess to httpd.conf, to ease the load on my server, but when I ...

  1. #1
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    123

    Exclamation move rewrite rules from .htaccess to httpd.conf

    I tried to move rewrite rules from .htaccess to httpd.conf, to ease the load on my server, but when I removed the .htaccess file, the re-write rules stopped working. So it didnt woked and I had to switch back to the rules in .htacess.

    Any help on how to do it?

    Thanks!

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Did you restart Apache after making the changes?

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,543
    You should put the content of .htaccess file like this:
    <Directory /path/to/your/forum>
    [insert rewrite rules here]
    </Directory>


    and restart Apache. You can remove .htaccess after that.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  4. #4
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    123
    Quote Originally Posted by Oleg Ignatiuk View Post
    You should put the content of .htaccess file like this:
    <Directory /path/to/your/forum>
    [insert rewrite rules here]
    </Directory>


    and restart Apache. You can remove .htaccess after that.
    it is like that, still not working when I remove the htaccess file

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,543
    Could you please provide us with access to your host (via support ticket) for troubleshooting?
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  6. #6
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    123
    Quote Originally Posted by Oleg Ignatiuk View Post
    Could you please provide us with access to your host (via support ticket) for troubleshooting?
    yeah thats what I really need my friend
    thanks!!!
    I will submit ticket now

  7. #7
    Member Paul M's Avatar
    Real Name
    Guess !
    Join Date
    Feb 2007
    Location
    Nottingham, UK
    Posts
    69
    Can you please post the resolution for this as I'm having similar trouble.

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,543
    Hello,

    it worked as described in the post above: move rewrite rules from .htaccess to httpd.conf
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  9. #9
    Junior Member
    Real Name
    Dustin
    Join Date
    Dec 2006
    Posts
    11
    Do I just copy and paste my .htaccess into the httpd.config file in etc/httpd/config directory and wrap it in the mentioned Directory tags?

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,543
    You should put into corresponding <Directory> section in apache config (or create this section if it doesn't exist).
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  11. #11
    Senior Member
    Real Name
    Admin
    Join Date
    Nov 2006
    Posts
    172
    Just hanging on in this thread:
    What about different .htaccess-Files. Do I have to insert the content of all of them into the one httpd.conf-File?
    And separate it with different startings for each directory?
    Have you got an example?

    Thanks a lot!
    Marcel

  12. #12
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul
    Posts
    16,907
    Blog Entries
    4
    Hello Marcel ,

    Here is an example

    Code:
    <Directory /home/root/public_html>
    root .htaccess
    </Directory>
    
    Code:
    <Directory /home/root/public_html/gallery>
    gallery .htaccess
    </Directory>
    
    Code:
    <Directory /home/root/public_html/review>
    review .htaccess
    </Directory>
    
    Mert Gökçeimam / Crawlability Inc.

    Yeni vBSEO Kontrol Paneli ve vBSEO 3.5 Yayın Tarihleri

    vBSEO 3.5 Beta 2 Yayınlandı - vBulletin 4 Uyumlu!



    Kişisel Sitem : Felsefe - Kültür merkeziniz

Similar Threads

  1. Syntax for Custom Rewrite Rules
    By Joe Ward in forum Custom Rewrite Rules
    Replies: 19
    Last Post: 01-17-2010, 06:23 PM
  2. Replies: 2
    Last Post: 02-24-2006, 10:11 AM
  3. Rewrite rules in httpd.conf or .htaccess?
    By porschinho in forum General Discussion
    Replies: 2
    Last Post: 12-28-2005, 05:27 PM