Jump to content
  • 0

pomoc RewriteRule - .htaccess


kudla188

Dotaz

Ahoj, v .htaccess souboru mám toto:

 

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/([0-9]+)/?$ index.php?data=$1&id=$2 [NC,L]

-> Příklad: z /index.php?data=novinky&id=1 se stane /novinky/1

 

ovšem potřeboval bych poradit, jak udělat nějakou podmínku, či něco jiného, aby když uživatel zadá jen /novinky/ aby se to četlo /index.php?data=novinky a nevyhodilo to

 

Not Found
The requested URL /novinky/ was not found on this server.

 

Poradí někdo?

 

Předem děkuji :)

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

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
×
×
  • Create New...