Jump to content
php.lv forumi

Izskaidrojiet problēmu


sandis_m

Recommended Posts

index lapa:

<link rel="stylesheet" type="text/css" href="stils.css"/>
<?php
if($_GET["selectedTab"]=="7"){
echo "Welcome to 7th page.";
//<-- kkaadi styloti div... backgrounds utt.
}
elseif($_GET["selectedTab"]=="100000"){echo "bla..bla";}
?>

 

 

htaccess:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?selectedTab=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?selectedTab=$1

 

Kad ieeju example.com/7 - visu raada kaa vajag, turpretim, kad ieeju

example.com/7/ - nerāda stilus.

Link to comment
Share on other sites

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/\.]+)/?$ /index.php?selectedTab=$1 [QSA,L]

 

Šitais neder... Viņs man tagad, kad aizeju uz example.com/7/ , pārmet uz example.com, kas man šobrīd nudien nav vajadzīgs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...