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
    134
    Liked
    0 times

    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
    Liked
    12 times
    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
    25,689
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #4
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    134
    Liked
    0 times
    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
    25,689
    Liked
    157 times
    Could you please provide us with access to your host (via support ticket) for troubleshooting?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    134
    Liked
    0 times
    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
    72
    Liked
    0 times
    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
    25,689
    Liked
    157 times
    Hello,

    it worked as described in the post above: move rewrite rules from .htaccess to httpd.conf
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  9. #9
    Junior Member
    Real Name
    Dustin
    Join Date
    Dec 2006
    Posts
    11
    Liked
    0 times
    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
    25,689
    Liked
    157 times
    You should put into corresponding <Directory> section in apache config (or create this section if it doesn't exist).
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  11. #11
    Senior Member
    Real Name
    Admin
    Join Date
    Nov 2006
    Posts
    247
    Liked
    0 times
    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, Turkey, Turkey
    Posts
    22,362
    Liked
    541 times
    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.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •