How to use category and subcategory in url without any fixed name?Secure hash and salt for PHP passwordsCodeIgniter: How to get Controller, Action, URL informationHow to fix “Headers already sent” error in PHPDisplay category and subcategories on left blockHow to remove controller name from the URL in codeigniter?How to make my codigniter url seo friendlyCreate dynamic url in codeigniter by dynamic controller and model with category and its subcategoryCodeIgniter - replacing category id in with name in URLShow li dynamically on hover using jqueryHow to make dynamic url with category name in codeigniter

How can I hint that my character isn't real?

Python reimplementation of Lost In Space by Tim Hartnell

Do aarakocra have arms as well as wings?

Passport - tiny rip on the edge of my passport page

Golfball Dimples on spaceships (and planes)?

What makes an ending "happy"?

antimatter annihilation in stars

How do I play this harmonic? (Guitar)

Professor refuses to write a recommendation letter to students who haven't written a research paper with him

How do I make my fill-in-the-blank exercise more obvious?

Project Euler problem #112

Project Euler Problem 45

Contractor cut joist hangers to make them fit

Is it right to use the ideas of non-winning designers in a design contest?

Supervisor wants me to support a diploma-thesis SW tool after I graduated

What is the purpose of the rotating plate in front of the lock?

Why do opposition parties not want an election?

Why does 8 bit truecolor use only 2 bits for blue?

Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?

How do draw effects during the discard phase work?

Why are there no wireless switches?

Draw the ☣ (Biohazard Symbol)

Template default argument loses its reference type

Dynamic Picklist Value Retrieval



How to use category and subcategory in url without any fixed name?


Secure hash and salt for PHP passwordsCodeIgniter: How to get Controller, Action, URL informationHow to fix “Headers already sent” error in PHPDisplay category and subcategories on left blockHow to remove controller name from the URL in codeigniter?How to make my codigniter url seo friendlyCreate dynamic url in codeigniter by dynamic controller and model with category and its subcategoryCodeIgniter - replacing category id in with name in URLShow li dynamically on hover using jqueryHow to make dynamic url with category name in codeigniter






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm unable to make SEO friendly category based URLs in CodeIgniter :



Current url:



http://www.website.com/view/T-Shirt/round-neck


My route code:



$route['view/(:any)'] = 'Frontend/sub_sub_category/$1';


But i want to show like this:



http://www.website.com/T-Shirt/round-neck.









share|improve this question


























  • I've never used Codeigniter. But why don't you just remove view/ in your route definition?

    – kuh-chan
    Mar 28 at 6:07











  • what is the view?, is it a controller or you're using some template engine?

    – BILAL MALIK
    Mar 28 at 6:19












  • view is just name of route url with Frontend controller @BILALMALIK

    – pointydynamo
    Mar 28 at 6:32

















0















I'm unable to make SEO friendly category based URLs in CodeIgniter :



Current url:



http://www.website.com/view/T-Shirt/round-neck


My route code:



$route['view/(:any)'] = 'Frontend/sub_sub_category/$1';


But i want to show like this:



http://www.website.com/T-Shirt/round-neck.









share|improve this question


























  • I've never used Codeigniter. But why don't you just remove view/ in your route definition?

    – kuh-chan
    Mar 28 at 6:07











  • what is the view?, is it a controller or you're using some template engine?

    – BILAL MALIK
    Mar 28 at 6:19












  • view is just name of route url with Frontend controller @BILALMALIK

    – pointydynamo
    Mar 28 at 6:32













0












0








0








I'm unable to make SEO friendly category based URLs in CodeIgniter :



Current url:



http://www.website.com/view/T-Shirt/round-neck


My route code:



$route['view/(:any)'] = 'Frontend/sub_sub_category/$1';


But i want to show like this:



http://www.website.com/T-Shirt/round-neck.









share|improve this question
















I'm unable to make SEO friendly category based URLs in CodeIgniter :



Current url:



http://www.website.com/view/T-Shirt/round-neck


My route code:



$route['view/(:any)'] = 'Frontend/sub_sub_category/$1';


But i want to show like this:



http://www.website.com/T-Shirt/round-neck.






php codeigniter router






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 6:07









Magnus Eriksson

8,6644 gold badges15 silver badges28 bronze badges




8,6644 gold badges15 silver badges28 bronze badges










asked Mar 28 at 6:02









HimanshuHimanshu

11 bronze badge




11 bronze badge















  • I've never used Codeigniter. But why don't you just remove view/ in your route definition?

    – kuh-chan
    Mar 28 at 6:07











  • what is the view?, is it a controller or you're using some template engine?

    – BILAL MALIK
    Mar 28 at 6:19












  • view is just name of route url with Frontend controller @BILALMALIK

    – pointydynamo
    Mar 28 at 6:32

















  • I've never used Codeigniter. But why don't you just remove view/ in your route definition?

    – kuh-chan
    Mar 28 at 6:07











  • what is the view?, is it a controller or you're using some template engine?

    – BILAL MALIK
    Mar 28 at 6:19












  • view is just name of route url with Frontend controller @BILALMALIK

    – pointydynamo
    Mar 28 at 6:32
















I've never used Codeigniter. But why don't you just remove view/ in your route definition?

– kuh-chan
Mar 28 at 6:07





I've never used Codeigniter. But why don't you just remove view/ in your route definition?

– kuh-chan
Mar 28 at 6:07













what is the view?, is it a controller or you're using some template engine?

– BILAL MALIK
Mar 28 at 6:19






what is the view?, is it a controller or you're using some template engine?

– BILAL MALIK
Mar 28 at 6:19














view is just name of route url with Frontend controller @BILALMALIK

– pointydynamo
Mar 28 at 6:32





view is just name of route url with Frontend controller @BILALMALIK

– pointydynamo
Mar 28 at 6:32












1 Answer
1






active

oldest

votes


















1
















try this:



your route should:



$route['default_controller'] = 'product';
$route['(:any)/(:any)'] = 'product/product_category/product_sub_category';


You Will get:



http://www.website.com/T-Shirt/round-neck


get more help with refer link: codeigniter URI Routing



also go with stack overflow link






share|improve this answer

























  • sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

    – Himanshu
    Mar 28 at 7:01












  • what is your default_controller?

    – pointydynamo
    Mar 28 at 7:30










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55391065%2fhow-to-use-category-and-subcategory-in-url-without-any-fixed-name%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1
















try this:



your route should:



$route['default_controller'] = 'product';
$route['(:any)/(:any)'] = 'product/product_category/product_sub_category';


You Will get:



http://www.website.com/T-Shirt/round-neck


get more help with refer link: codeigniter URI Routing



also go with stack overflow link






share|improve this answer

























  • sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

    – Himanshu
    Mar 28 at 7:01












  • what is your default_controller?

    – pointydynamo
    Mar 28 at 7:30















1
















try this:



your route should:



$route['default_controller'] = 'product';
$route['(:any)/(:any)'] = 'product/product_category/product_sub_category';


You Will get:



http://www.website.com/T-Shirt/round-neck


get more help with refer link: codeigniter URI Routing



also go with stack overflow link






share|improve this answer

























  • sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

    – Himanshu
    Mar 28 at 7:01












  • what is your default_controller?

    – pointydynamo
    Mar 28 at 7:30













1














1










1









try this:



your route should:



$route['default_controller'] = 'product';
$route['(:any)/(:any)'] = 'product/product_category/product_sub_category';


You Will get:



http://www.website.com/T-Shirt/round-neck


get more help with refer link: codeigniter URI Routing



also go with stack overflow link






share|improve this answer













try this:



your route should:



$route['default_controller'] = 'product';
$route['(:any)/(:any)'] = 'product/product_category/product_sub_category';


You Will get:



http://www.website.com/T-Shirt/round-neck


get more help with refer link: codeigniter URI Routing



also go with stack overflow link







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 6:27









pointydynamopointydynamo

1197 bronze badges




1197 bronze badges















  • sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

    – Himanshu
    Mar 28 at 7:01












  • what is your default_controller?

    – pointydynamo
    Mar 28 at 7:30

















  • sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

    – Himanshu
    Mar 28 at 7:01












  • what is your default_controller?

    – pointydynamo
    Mar 28 at 7:30
















sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

– Himanshu
Mar 28 at 7:01






sir, if i use this code will show same page of sub category. not solved sir $route['(:any)/(:any)'] => this will show same page always due to this route

– Himanshu
Mar 28 at 7:01














what is your default_controller?

– pointydynamo
Mar 28 at 7:30





what is your default_controller?

– pointydynamo
Mar 28 at 7:30








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55391065%2fhow-to-use-category-and-subcategory-in-url-without-any-fixed-name%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript