Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 09-08-2015, 10:52 PM   #1
hausarzt
Confirmed User
 
hausarzt's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: Somewhere in Germany
Posts: 815
Wordpress Permalinks : How to?

Hi Folks.

Is there any way to achive this permalink strukture?

DOMAIN/CATEGORY/SUBCATEGORY/SUBCATEGORY

mysite.org/cars/bmw/engine
mysite.org/cars/audi/engine
mysite.org/cars/ford/engine

The problem is the category "engine". As far as I know, it's not possible to have a slug multiple times. Any plugins, coders, hacks to make this possible?
__________________
I know, my english is bad. But your german might be even worse
hausarzt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-14-2015, 04:07 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 54,562
you can use the rewrite api to pretty much do anything, i would look into that.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


my contact: fris at fris.net
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-30-2015, 06:29 AM   #3
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,018
actually it's not that hard once you understand how this works.. the most basic example would be

create a file called .htaccess and paste this into it

Quote:
<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^([^/]+)/([^/]+)/([^/]+) index.php?first=$1&second=$2&third=$3 [NC,L]

</IfModule>
save it and upload it to your server

now create the index.php file

Quote:
<?php

print_r($_GET);

?>
upload both to your server and open up

domain.com/cars/bmw/engine

it will print something like

Array ( [first] => cars [second] => bmw [third] => engine )

Regards.
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-30-2015, 06:36 AM   #4
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,018
also, make sure to block folders you don't want .htaccess to use... to do this, simply add for example

Quote:
RewriteRule ^images - [L,NC]
before the RewriteEngine On
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
permalinks, slug, hacks, coders, plugins, multiple, times, permalink, strukture, achive, folks, category, engine, wordpress



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.