Results 1 to 5 of 5
-
9th Sep 2011, 05:36 PM #1OPJust Another Coder
mod_rewrite fix
Hello
I have got the following mod_rewrite for my site.
Code:RewriteEngine On RewriteRule ^index\.html$ /index.php [L] RewriteRule ^([^/]*)\.html$ /videos/watch.php?id=135&video=$1 [L]
Code:http://domain.com/videos/watch.php?id=130&video=My-Ride-Rules-S01E06-HDTV-XviD-CRiMSON-
Code:http://domain.com/My-Ride-Rules-S01E06-HDTV-XviD-CRiMSON-.html
Thanksfdls Reviewed by fdls on . mod_rewrite fix Hello I have got the following mod_rewrite for my site. RewriteEngine On RewriteRule ^index\.html$ /index.php RewriteRule ^(*)\.html$ /videos/watch.php?id=135&video=$1 The current url is http://domain.com/videos/watch.php?id=130&video=My-Ride-Rules-S01E06-HDTV-XviD-CRiMSON- Rating: 5
-
9th Sep 2011, 05:41 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inUse this one:
PHP Code:RewriteEngine On
RewriteRule ^index\.html$ index.php [L]
RewriteRule ^([^/]*)$ videos/watch.php?id=130&video=$1 [L]
That will work for:
http://domain.com/videos/watch.php?i...-XviD-CRiMSON-
http://domain.com/My-Ride-Rules-S01E...-XviD-CRiMSON-
Edit:
Just saw that you want with ids too, so this will work with id's:
PHP Code:RewriteEngine On
RewriteRule ^index\.html$ index.php [L]
RewriteRule ^([0-9]{4})-([^/]*)$ videos/watch.php?id=$1&video=$2 [L]
http://domain.com/130-My-Ride-Rules-S01E06-HDTV-XviD-CRiMSON-
To:
http://domain.com/videos/watch.php?i...-XviD-CRiMSON-
If you want without id, then you need to edit the script you are using and check for the tile in db with special chars removed
-
9th Sep 2011, 05:42 PM #3OPJust Another Coder
-
9th Sep 2011, 05:45 PM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.in
-
9th Sep 2011, 05:51 PM #5OPJust Another Coder
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How can I enable Mod_Rewrite?
By Areon in forum Server ManagementReplies: 0Last Post: 3rd Mar 2014, 01:26 PM -
Blocking spammers with mod_rewrite
By NewEraCracker in forum Tutorials and GuidesReplies: 11Last Post: 2nd Oct 2011, 05:19 PM -
Mod_rewrite access???
By SaBteCh in forum Server ManagementReplies: 6Last Post: 18th Dec 2010, 01:09 AM -
mod_rewrite help
By Paul in forum Webmaster ResourcesReplies: 1Last Post: 23rd Mar 2010, 12:02 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...