I was wondering how to do it.
have tryed this:
RewriteRule ^watch:?(.+)$ /watch.php?pid=$1 [NC]
but it wont work
Also i have read this:
viewtopic.php?t=4221&highlight=file+rewrite
but not success, or i have not understand it...
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^watch:([0-9]+)$ /watch.php?pid=$1 [NC,QSA,L]
RewriteRule ^video$ /video/$1 [R]^
RewriteRule ^video/?(.+)$ /wraps/video/$1 [NC]^
RewriteRule ^video?(.+)$ /wraps/video/$1 [NC]^
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^watch/([^/]+)/?$ /wraps/video/watch.php?pid=$1 [QSA,L]
RewriteRule ^video$ /video/$1 [R]^
RewriteRule ^video/?(.+)$ /wraps/video/$1 [NC]^
RewriteRule ^video?(.+)$ /wraps/video/$1 [NC]^
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^(.*&)?pid=([^&]+)(&.*)?$ [NC]
RewriteRule ^wraps/video/watch\.php$ /watch/%2/? [R=301,L]
RewriteRule ^watch/([^/]+)/?$ /wraps/video/watch.php?pid=$1 [QSA,L]
domain.com/video/ID
domain.com/video/watch.php?pid=ID
Users browsing this forum: No registered users and 14 guests