• I have a problem with .htaccess and at the same time with friendly links.

    I add a script to make friendly URL but after refreshing the WP self-generating and old htaccess script (and ofcourse it crashes me frendly links which aren’t work).

    I’ve tried to change the attributes of 444, 644.666, 660, nothing works!

    Do you have an idea how to fix it? My .htaccess looks like this:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase / gallery /
    RewriteRule ^ index.php $ – [L]
    RewriteCond% {REQUEST_FILENAME}! -f
    RewriteCond% {REQUEST_FILENAME}! -d
    RewriteRule. /galeria/index.php [L]
    <IfModule>

    After refresh lines: RewriteBase / gallery / and RewriteRule. /galeria/index.php [L] disappear.

    What to do?

Viewing 10 replies - 1 through 10 (of 10 total)
  • These are the standard WordPress rewrite rules for pretty permalinks:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Try setting the file permissions of .htaccess to 644 and regenerate the permalink rules in the dashboard through Settings ==> Permalinks ==> (select) Post name ==> (select) Save changes

    Thread Starter lukas712

    (@lukas712)

    I have try it… 100 times… dosn’t work… ??

    Try saving a copy of the file, then delete it and regenerate an new file with rules through: Settings ==> Permalinks ==> (select) Post name ==> (select) Save changes

    Thread Starter lukas712

    (@lukas712)

    Nothing… the most stupid thing is situation that works, but after two refreshing it crush…

    …Realy crazy…

    Hmmm. Further suggestions:

    1. Try enabling debugging in the wp-config.php file to see what might be causing the issue.
    2. Try deactivating ALL plugins AND activate a stock WordPress theme such as Twenty-Fifteen and see if you can recreate the issue.
    Thread Starter lukas712

    (@lukas712)

    1. Check – nothing
    2. Check nothing

    ??

    Thread Starter lukas712

    (@lukas712)

    But thx for trying ??

    I would next try reloading a fresh copy of WordPress:

    1. Take a full backup first (site files + database)
    2. Delete all the existing WordPress related directories/files from the root, *except* the wp-content directory and wp-config.php file
    3. Download a fresh version of WordPress 4.3.1 to your local machine
    4. Upload the new WordPress files (excluding wp-content and wp-config.php) to the root of the site through your host provided file manager (e.g. cPanel, WHM) or FTP client such as Filezilla

    If that is not successful then I would try contacting your host for suggestions.

    Thread Starter lukas712

    (@lukas712)

    Thx you very much ??

    I will try it ??

    No problem at all. Good luck!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘htaccess self modyfication’ is closed to new replies.