The Rewriterule is:

RewriteRule ^(.*)/(.*)$ index.php?search=$1&Page=$2

The mention of stylesheet is:

<link type="text/css" rel="stylesheet" href="/css/style.css">

After I place the rewrite around the style sheet is overlooked. Help me to create the right rule, thanks!

This really is completed in .htaccess at the bottom /

The hyperlink for your stylesheet has been rewritten to index.php. To avert this, begin with something similar to:

RewriteRule ^css/ - [NC,L]

This makes anything within the css directory to not be rewritten (unless of course there's for whatever reason an .htaccess file in css, which may be unusual).

I am presuming you won't want to redirect any demands for files that really exist, as opposed to just the CSS file. For example, should you have had a /images directory with image files you most likely wouldn't would like your PHP script to deal with that anymore than you would like it to handle your CSS file.

Fundamental essentials "standard" rules to provide that:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

They are conditionals which say "when the following condition is fake, disregard the next RewriteRule. The particular conditions being examined are inspections to make sure that the request is not for any file or directory that really is available.

Which means that whenever you request /css/style.css, Apache notice there's personal files with that title that already is available, therefore it will ignore your rewrite and serve the file directly.