CodeCanyon

Mod Rewriter

  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
eonic81 says

Is it possible to rewrite url such as this?

http://localhost/index.php?view=home&sid=28TVRFNU16VXpORGt6T1&sid2=28TVR&siduid=28&

Thanks!

Posted 8 months ago
Author
Sitebase Sitebase replied

Yes

Posted 8 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
mendyberrebi says

Hello, I created a site in php (no cms) is what I use for rewriting your script?

Posted 8 months ago
Author
Sitebase Sitebase replied

You can indeed rewrite your PHP website urls with this script.

Posted 8 months ago
  • Has been a member for 0-1 years
  • Bought between 50 and 99 items
  • Europe
  • Referred between 1 and 9 users
MariusP says

Hi sitebase. Still waiting for that language file update ;) I’m looking to turn my cms to a more lighter and faster url rewrite class, like wordpress has, can I use this?

I basicly need to switch it based on first parameter and load the according file while keeping the old patern

/video/local_id/video_name/ /user/local_id/name /news/local_id/title /status/local_id/

Can this class make more light my cms? If so, you know I’m your best buyer when it comes to extended licences :)

Posted 7 months ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 100 and 499 items
  • United States
guide_robert says
Purchased

I have purchased this script and need the instructions to rewrite a link such as this: http://localhost/directory.php?category=test.one

Posted 7 months ago
Author
Sitebase Sitebase replied

It’s better to use an index.php file to handle all the redirecting. See the included demo for a good example of this.

Posted 7 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
damark says
Purchased

Hi. I have a problem with this script, when I have installed and run it, I saw that this script blocked my css, img, and js links

for example:

””link href=”assets/css/style.css” rel=”stylesheet” type=”text/css”””

I think it’s a problem with .Htaccess rules please help

Posted 7 months ago
Author
Sitebase Sitebase replied

When you use rewrites in you website you must use relative urls instead of absolute for CSS /JS and images.

Posted 6 months ago
  • Has been a member for 1-2 years
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • Europe
  • Referred between 1 and 9 users
var says
Purchased

Hello Sitebase, I just purchased this script but im having trouble setting this up..

Can you help me set this up?

Yours Var

Posted 5 months ago
Author
Sitebase Sitebase replied

Can you create a ticket for this on my support.sitebase.be website. Thanks!

Posted 5 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
50inches says

How does Google index these sites? Which url is used? Because I see at the bottom of your example site that when you roll over the link, you still have the same old style. Does that mean that google will index it with the regular link as well?

I am wondering because I want to buy this script out of SEO purposes.

Posted 5 months ago
Author
Sitebase Sitebase replied

Which example are you using because when I look at the links they all use the rewritten urls. Google will index the rewritten urls.

Posted 5 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
eonic81 says
Purchased

Great script,, so glad I purchased it, it made my life so much easier, thanks a lot!

Posted 4 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • South Africa
CharlG says
Purchased

I have a rather large problem. When I visit my site root (http://domain.com) it gets redirected to http://domain.com/index.php?page=home which is displayed in the address bar. I only want http://domain.com displayed in the address bar. Further more, there is no rewrite rule which redirects to index.php?page=$1 only index.php?route=$1 which comes from your install script.

Why is it doing that, and how do I fix it?

Also, I keep getting double slashes (http://domain.com/gallery/photos//). Why and how do I fix that?

Posted 4 months ago
Author
Sitebase Sitebase replied

Can you create a ticket for this on support.sitebase.be? Thanks!

Posted 4 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • South Africa
CharlG says
Purchased

It’s ok, I got it sorted. I changed the .htaccess file and it works perfect now.

Thanks :)

Great code BTW …

Posted 4 months ago
  • Has been a member for 0-1 years
  • Bought between 50 and 99 items
  • Europe
  • Referred between 1 and 9 users
MariusP says
Purchased

Heya!

Need a bit of help.

$routes['wall']         = "wall/\$id/\$name";

works great for

/wall/1/gogu/

fails for

/wall/1/gogu/page-2/

if you add

$routes['wall']         = "wall/\$id/\$name/\$page";

Fails when no page is defined….any ideeas?

Second, idk if anybody asked but does it have to be so ”/ untolerant?

Thanks for your help!

Posted 4 months ago
Author
Sitebase Sitebase replied

Try to replace this line

RewriteRule ^(.*)$ index.php?route=$1 [L]

with this in your .htaccess file:

RewriteRule ^(.*)/?$ index.php?route=$1 [L]
Posted 4 months ago
Purchased
MariusP MariusP replied

I did but adding ?page=1 fails to read by $_GET[‘page’] :( even tho now it doesn’t trow 404…any ideea?

Edit:

My bad, the link should have bee &page=10 not ?page=10

Your mod worked. Thank you very much!

Posted 4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
janmalagucute says

Can I use this in wordpress to change the default wp-admin url to something else?

Posted 2 months ago
Author
Sitebase Sitebase replied

No, that is not possible with this script.

Posted 2 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
vjeko11 says
Purchased

Hi, is it possible to combine your rewrite code with this

  1. RewriteCond %{HTTP_HOST} !^www\.
  2. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

I shuld open www.domain.

tnx

Posted 2 months ago
Author
Sitebase Sitebase replied

I would say: test it out. You already have a license :).

Posted 2 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
vjeko11 says
Purchased

Hi, I have problem with flash. Flash is only works in the root but in in rest links want.

Pls any sugestion.

Posted 2 months ago
Author
Sitebase Sitebase replied

This is a PHP script, It doesn’t have anything to do with Flash.

Posted 2 months ago

You must sign in or sign up to purchase this item.

$3Regular Licence

$3

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$15Extended Licence

$15

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

408 Purchases 54 Comments

Buyer Rating
12345 ( 79 ratings )
Sitebase

Sitebase

  • Has been a member for 2-3 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Envato Staff
  • Reviewer
  • Author had a Free File of the Month
  • Exclusive Author
  • Beta Tester
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Belgium
  • Referred between 100 and 199 users
View Portfolio
Created 4 January 10
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari
Software Version PHP 5.x
Software Framework N/A
Files Included HTML, PHP
by
by
by
by
by