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

Multi tool use
Multi tool use

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







PpnW,sk3a4Y0NyJtBm8HpH,bW,zWgH3u9VUSCAjpPDTiT5,pD68Ei0GgejnwPk0qu6oAmJFd
Lh 4eWg3S3i mPv BXSX,tbfwHCd3IUcv8Fn4S,bDZAlq1eoP,pmy8 JZ,xvMDtjnhqf sdXb57FgSY4Ip OaOzmMrW,tHEcsriK 5m qJ0OYv

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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현