Jump to content
Sign in to follow this  
Tr0YB0Y

Cum scot index.php din URL in WordPress?

Recommended Posts

Salut PCT, cum scot index.php din link-ul urmator: pctecuci.ro/index.php/generator-culori-html? As vrea sa fie de forma: pctecuci.ro/generator-culori-html. Multumesc!

lInwjzG.png

Share this post


Link to post
Share on other sites

1. Trebuie sa ai mod_rewrite activat pe serverul de gazduire (in cele mai multe cazuri e activ).
2. Te autentifici ca Admin -> Dashboard -> Settings -> Permalinks -> alegi “Custom Structure” -> in camp completezi: /%postname%/ -> salvezi modificarile
3. In fisierul .htaccess introduci liniile de mai jos:

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

Succes!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×