How to remove index.php from URLs

Am wondering how to remove index.php from URLs, every link on my site has index.php in it, for e.g. example.com/index.php/contact-us.

Am using Drupal 8, my server is Apache and php version is 5.6, and am on Shared Hosting.

In the .htaccess file i tried to use

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
That removed the index.php but any new article wont show the images in the homepage(index.php)

then i tried to use

Styling one content type separately from other content types?

I'm relatively new to Drupal 8 and I want to do something very simple, but alas... I'm a bit of a Drupal newb and can't seem to get this right.

I'm using Drupal 8 with the Bootstrap Theme. I've got a few different content types (Generic Page, Blog, etc).

What I want to do is wrap JUST the Blog content type in a couple of div tags with classes around the main content. JUST the blog content type. That's it. I've dug around in the content type settings and can't find anything that'll allow me to do this.

It'd be like:

Resources/Experience for D8 in a HA environment?

Need to deploy a new D8 site in a HA environment but am lacking resources that could explain options.

I saw in the settings.php file master/slave database options however I am not positive on the exact behind the scenes config needed to support a scenario such as this.

Can anyone supply personal experience or provide/point-to resources that could explain options that work well with D8 in a HA environment/configuration?

Thanks for any assistance!

How to install third party library for Printable using composer?

I installed the "Printable" module but it doesn't work. When I try to configure the PDF for the Printable module it says:

"You are seeing no PDF generating tool because you have not installed any third party library using composer"

What do I do now?

how do I RECOVER and clean up after a malware attack?

In recent days especially, my site has been bombarded with 100,000's of hits. Mostly from Russia.

Some of the articles or posts received 200 and 300,000 comments in the comment section.

I have closed commenting of course. But it seems impossible to remove that data.

Obviously I can't delete millions of comments one by one - I have tried deleting the articles they are posted to - but get this error message:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/rickmc45/public_html/includes/entity.inc on line 248

Set value in $form_state in an AJAX callback

How can I set form_state and return ajax commands in an AJAX callback?

I've tried: $form_state->setValue(); and $form_state->setTemporaryValue(); however these properties are not set in submit / or other AJAX callbacks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x