WordPress.org

Forums

permalinks (7 posts)

  1. eb3604
    Member
    Posted 11 years ago #

    I know this has been posted infinite times but I havent found a real solution to my problem. I have just moved my blog from my root directory to a wp directory. Trying to set up permalinks and I edit my .htaccess file and then it comes up as a server 500 error. In my server errors in CPanel, it gives Mod rewrite: bad delimiters.

  2. Jonathan_st
    Member
    Posted 11 years ago #

    Please be more specific and post what you put in your .htaccess, the URL which you are trying to access, and the last few lines of your error log (should be available in CPanel)

  3. OperaManiac
    Member
    Posted 11 years ago #

    is the blog working fine with a blank .hta?
    did u press the update button to get the latest rewrite rules?
    have u changed the base url setting in the backend options?

  4. eb3604
    Member
    Posted 11 years ago #

    my site works fine with a blank or non existant .hta file. my mod rewrite rules are
    RewriteEngine On
    RewriteBase /wp/
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /wp/index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /wp/index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/? ([0-9]+)?/?$ /wp/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/ (feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/ trackback/?$ /wp/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp/wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp/wp-feed.php?feed=$1&withcomments=1 [QSA]

    my error log gives
    [Fri Apr 16 19:13:38 2004] [alert] [client IP ADDRESS] /home/eb3604/public_html/wp/.htaccess: RewriteRule: bad flag delimiters

  5. carthik
    Member
    Posted 11 years ago #

    The bad flag delimiters error appears when there is an extra space that is not intended.
    You could try manually editing the .htaccess files to make sure that there are no unwanted line breaks, no unwanted spaces, etc.

  6. Jonathan_st
    Member
    Posted 11 years ago #

    What's with the &
    those should be &
    Maybe the ; is confusing it

  7. clay
    Member
    Posted 11 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.