5 replies
  • WEB DESIGN
  • |
Hey guys, please go here -
Personal Motivation Quotes

If you click anywhere, the html links dont work, and this is my HTACCESS file -
RewriteBase /
RewriteEngine on

What do I need to change for the rewrites to work?
#htaccess
  • Profile picture of the author KingRoyal
    Anyone? PleasE?
    {{ DiscussionBoard.errors[8627904].message }}
  • Profile picture of the author RobinInTexas
    What kind of CMS are you using?

    I don't think the problem is with the .htaccess
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8628264].message }}
  • Profile picture of the author KingRoyal
    Its not a CMS, its a script from Code Canyon, howrever other people report its working on their servers

    Options +FollowSymLinks
    Options -Indexes
    # STRONG HTACCESS PROTECTION
    <Files ~ "^.*\.([Hh][Tt][Aa])">
    order allow,deny
    deny from all
    satisfy all
    </Files>


    RewriteEngine on

    #RewriteRule topic/(.*)/(.*)/ topic.php?page=$1&topic=$2

    RewriteRule topic/(.*)/(.*).html topic.php?topic=$1&page=$2
    RewriteRule search/(.*).html search.php?q=$1

    #RewriteRule quotesfromauthor/(.*)/(.*)/ quotesfromauthor.php?authorid=$1&page=$2
    RewriteRule quotesfromauthor/(.*)/(.*).html quotesfromauthor.php?authorid=$1&page=$2

    #RewriteRule authorlist/(.*)/ authorlist.php?alphabet=$1
    RewriteRule authorlist/(.*).html authorlist.php?alphabet=$1
    #RewriteRule quote/(.*)/ quote.php?id=$1
    RewriteRule quote/(.*).html quote.php?id=$1



    RewriteRule index(.*).html$ index.php
    RewriteRule topics(.*).html$ topics.php
    RewriteRule submit(.*).html$ submit.php
    RewriteRule authors(.*).html$ authors.php
    RewriteRule profile(.*).html$ profile.php


    RewriteRule picturequotes/(.*)/(.*).html picturequotes.php?category=$1&page=$2

    RewriteRule picture/(.*)/ pictureq.php?picture=$1
    RewriteRule picture/(.*).html pictureq.php?picture=$1



    RewriteRule search.html(.*) search.php
    RewriteRule logout(.*).html$ logout.php
    ErrorDocument 404 /index.php


    RewriteRule sitemap(.*).xml$ sitemap_xml.php
    RewriteRule rss(.*)$ rss.php
    {{ DiscussionBoard.errors[8628350].message }}
  • Profile picture of the author shantanu
    You must configure your htaccess files along with all permissions reset and turn them to ALLOWED.
    {{ DiscussionBoard.errors[8630096].message }}
  • Profile picture of the author Monika Verma
    Originally Posted by Pink Tulips008 View Post

    Hey guys, please go here -
    Personal Motivation Quotes

    If you click anywhere, the html links dont work, and this is my HTACCESS file -
    RewriteBase /
    RewriteEngine on

    What do I need to change for the rewrites to work?
    Try this


    RewriteEngine On
    ########## Begin - Rewrite rules to block out some common exploits
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]

    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|\.swf|/[^.]*)$ [NC]
    RewriteRule (.*) index.php
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

    ---------------------

    Hire Mobile Application Developers
    {{ DiscussionBoard.errors[8633763].message }}

Trending Topics