Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other .htacces not working

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42614
    Htmlmainiac
    Member

    I have this .htaccess code:


    RewriteEngine On
    RewriteRule /stuff/confadarte-bikini-styles/post/(.+) /stuff/confadarte-bikini-styles/func/post.php?slug=$1
    RewriteRule /stuff/confadarte-bikini-styles/category/(.+) /stuff/confadarte-bikini-styles/func/category.php?slug=$1


    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /stuff/confadarte-bikini-styles/index.php [L]

    But it half works. so this is what works:

    When you go to “post/**_the_slug_**” it works.
    When you go to “**_the_page_name_**/” it works.

    But what does not work is when you go to “category/**_the_slug_**” it does the second thing that works and gives a 404 error becase index.php cant find “pages/category.php”

    Can you please tell me what is going on.

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.