Home trying to figure out this htaccess code. integrating SMF using ssi.php with main site
Reply: 0

trying to figure out this htaccess code. integrating SMF using ssi.php with main site

hachikico
1#
hachikico Published in 2017-12-05 07:52:54Z
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    RewriteCond %{THE_REQUEST} ^.*(.php|mags).* [NC]

    RewriteRule ^ / [L,R=301]

    # Redirect Trailing Slashes...


    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

So i'm currently messing around with this htaccess code. The problem: the page itself redirects to index.php no matter what the url says (Html code) but htaccess is preventing from redirecting to the url the html is displaying. The ssi.php is working properly it outputs the url i want people to use. How ever it redirects to index.php and adds the trailing url information. What line can i add to make it where the htaccess redirects properly to the mags folder & smf folder?

The directory name is smf Currently displaying https://website.com/?action=login What i'm trying to change it to https://website.com/smf/?action=login

I hope you have a great day.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.326345 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO