CodeCanyon

Mod Rewriter

  • Has been a member for 1-2 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!

1 year ago
Author
Sitebase Sitebase replied

Yes

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
mendyberrebi says

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

1 year ago
Author
Sitebase Sitebase replied

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

1 year ago
  • Has been a member for 1-2 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 :)

11 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

11 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.

11 months ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • Ukraine
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

10 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.

10 months ago
  • Has been a member for 2-3 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

9 months ago
Author
Sitebase Sitebase replied

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

8 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.

8 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.

8 months ago
  • Has been a member for 1-2 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!

7 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?

7 months ago
Author
Sitebase Sitebase replied

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

7 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 …

7 months ago
  • Has been a member for 1-2 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!

7 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]
7 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!

7 months ago
  • Has been a member for 1-2 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?

6 months ago
Author
Sitebase Sitebase replied

No, that is not possible with this script.

5 months ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 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

5 months ago
Author
Sitebase Sitebase replied

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

5 months ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 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.

5 months ago
Author
Sitebase Sitebase replied

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

5 months ago
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
aldomania says

Just looking for a simple way to remove the .php extension from my urls – will this do what I need?

3 months ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Bought between 1 and 9 items
wmwm says
Purchased
$routes['category'] = "category/\$name";

With this routes I can use any query string after the category slug, example

http://domain.com/category/cars/
http://domain.com/category/services/

Question :

How do I create an error page if the category does not exist?

3 months ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Bought between 1 and 9 items
wmwm says
Purchased

According to MariusP question above

RewriteRule ^(.*)$ index.php?route=$1 [L]
http://domain.com/category/&page=3

change to

RewriteRule ^(.*)/$ index.php?route=$1 [L,QSA]
http://domain.com/category/?page=3

So we can use ? instead of & for pagination

3 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
KenYinkz says

Hi SiteBase, Just a quick question here.

I manage a big site with a massive 1000 line .htacess file, will this install script overwrite the file?

Regards

3 months ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Saudi Arabia
Smarter says
Purchased

Hello, i have many static pages ( car.php, door.php, key.php ) and ( design.php, logo.php, brand.php ).

now i want call it by : mysite.com/products/car mysite.com/products/key mysite.com/products/door and mysite.com/services/design mysite.com/services/logo mysite.com/services/brand

plz help me with this.

1 month ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 50 and 99 items
  • United States
iLoris says
Purchased

Hi,

I have set the htaccess to url with / at the end. Is it still possible to catch the GET data from an url? (domain.com/blog/?test=1&data=2 ) It doesn’t work right now.

19 days ago
by
by
by
by
by