Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB