• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change URL of Wallpaper Script

#1
Hey Friends i am using demo.phpwscript.com Wallpaper script with codeigniter framework, i want to change its permalink structure and url. I am trying lot but i cant please help me.

File that generate url
routesDB.php
Wallpaper_private.php

There are code in routesDB.php on line 21

Code:
$route['wallpaper_page'] = array(
       'key' => 'wallpaper/(:all)/(:any)/(:any)',
       'controller' => 'wallpaper_private/index/',
       'value' => '$1/$2/$3',
       'url' => 'wallpaper/{C_SLUG_FULL}/{W_SLUG}/{W_HASH}'
);
I want to change this url to only {W_SLUG} i modify as below

Code:
$route['wallpaper_page'] = array(
   'key' => 'wallpaper_slug',
   'controller' => 'wallpaper_private/index/',
   'value' => '$1',
   'url' => '{W_SLUG}'
);
Getting error 404. I think i need to changes something is Wallpaper_private.php. Please help.


Attached Files
.php   routesDB.php (Size: 6.1 KB / Downloads: 102)
.php   Wallpaper_private.php (Size: 18.24 KB / Downloads: 100)
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.