Support » Fixing WordPress » permalinks

  • 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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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)

    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?

    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

    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.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘permalinks’ is closed to new replies.