A very long story... but site crashed, wpconfig and htaccess have been re-done, site now no longer WPMU (that bit of code was one of the things that seemed to make it crash, and I don't need it to be WPMU anymore anyway), and now half of my permalinks dont work.
Single posts and archives are ok.
ie - http://dropdeadgorgeousdaily.com/2011/11/sweet-deal-urban-jungle/
http://www.dropdeadgorgeousdaily.com/category/sale-alert/
Pages when sat beneath a parent page are ok. (I have moved all main pages to now sit underneath a parent page for now as a fix, but would like to get it back working where it was for SEO etc..).
works - http://dropdeadgorgeousdaily.com/community/forum/
doesnt work / 404s (has been moved now though) - http://dropdeadgorgeousdaily.com/dshop-online-shopping/
Custom taxonomy archives no longer work too.
example - http://dropdeadgorgeousdaily.com/dshop-boutiques/on-sale/
HELP!
John Cotton answers:
Have you tried changing your permalink settings (to anything else) and then changing them back again to what you have set now?
kateM82 comments:
yep, no good. And I can't see where to change the permalinks for pages, only posts?
John Cotton comments:
<blockquote> And I can't see where to change the permalinks for pages, only posts?</blockquote>
Are we talking about the same thing?
You need to go to Settings > Permalinks on the dashboard menu. Make a note of what you've got now, change to something else, save, then change back and save again.
Is that what you did? If not, try it....
kateM82 comments:
Yep that is what I did, made no difference.
kateM82 comments:
Sorry wasn't sure if pages vs post permalinks where different (the setting is month/year/post title, but pages don't show the date)
John Cotton comments:
What is your permalink setting?
John Cotton comments:
Ignore last - you've just answered it!
John Cotton comments:
If you edit the page @ /dshop-online-shopping/ on the dashboard, what does the slug say (just under the title) ? And if you click "view page" what url does it give you?
(Nice looking site by the way...)
John Cotton comments:
http://dropdeadgorgeousdaily.com/community/dshop-online-shopping/ works!
If fact, I was redirected to it from
http://dropdeadgorgeousdaily.com/page/dshop-online-shopping/
Can you post your .htaccess file up here? Or email it to [email protected] if you'd rather...
kateM82 comments:
Hi John,
I have redirects in place at the moment (and have also added parent pages to all my pages to get them working). the original permalink for this page is http://dropdeadgorgeousdaily.com/dshop-online-shopping/
here is the htaccess file, I have tried it with just the original bit (bigin wordpress/end wordpress) end it made no difference.
# Getting rid of the WWW in front
RewriteCond %{HTTP_HOST} ^www.dropdeadgorgeousdaily.com [NC]
RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.ddgdaily.com [NC]
RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^ddgdaily.com [NC]
RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^dshop.dropdeadgorgeousdaily.com [NC]
RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/dshop-online-shopping/ [L,R=301]
RewriteCond %{HTTP_HOST} ^beauty.dropdeadgorgeousdaily.com [NC]
RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/beauty-home/ [L,R=301]
RewriteCond %{HTTP_HOST} ^styleadvisor.dropdeadgorgeousdaily.com [NC]
RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/category/questions/ [L,R=301]
# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
</IfModule>
</IfModule>
<FilesMatch "\.(css|js|CSS|JS)$">
FileETag None
<IfModule mod_headers.c>
Header set X-Powered-By "W3 Total Cache/0.9.1.4b"
</IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
FileETag None
<IfModule mod_headers.c>
Header set X-Powered-By "W3 Total Cache/0.9.1.4b"
</IfModule>
</FilesMatch>
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
FileETag None
<IfModule mod_headers.c>
Header set X-Powered-By "W3 Total Cache/0.9.1.4b"
</IfModule>
</FilesMatch>
# END W3TC Browser Cache
# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9\-\.]+\.[a-z]+)\.?(:[0-9]+)?$
RewriteRule .* - [E=W3TC_DOMAIN:%2]
RewriteCond %{HTTP_USER_AGENT} (2\.0\ mmp|240x320|alcatel|amoi|asus|au\-mic|audiovox|avantgo|benq|bird|blackberry|blazer|cdm|cellphone|danger|ddipocket|docomo|dopod|elaine/3\.0|ericsson|eudoraweb|fly|haier|hiptop|hp\.ipaq|htc|huawei|i\-mobile|iemobile|j\-phone|kddi|konka|kwc|kyocera/wx310k|lenovo|lg|lg/u990|lge\ vx|midp|midp\-2\.0|mmef20|mmp|mobilephone|mot\-v|motorola|netfront|newgen|newt|nintendo\ ds|nintendo\ wii|nitro|nokia|novarra|o2|openweb|opera\ mobi|opera\.mobi|palm|panasonic|pantech|pdxgw|pg|philips|phone|playstation\ portable|portalmmm|\bppc\b|proxinet|psp|qtek|sagem|samsung|sanyo|sch|sec|sendo|sgh|sharp|sharp\-tq\-gx10|small|smartphone|softbank|sonyericsson|sph|symbian|symbian\ os|symbianos|toshiba|treo|ts21i\-10|up\.browser|up\.link|uts|vertu|vodafone|wap|willcome|windows\ ce|windows\.ce|winwap|xda|zte) [NC]
RewriteRule .* - [E=W3TC_UA:_low]
RewriteCond %{HTTP_USER_AGENT} (acer\ s100|android|archos5|blackberry9500|blackberry9530|blackberry9550|blackberry\ 9800|cupcake|docomo\ ht\-03a|dream|htc\ hero|htc\ magic|htc_dream|htc_magic|incognito|ipad|iphone|ipod|kindle|lg\-gw620|liquid\ build|maemo|mot\-mb200|mot\-mb300|nexus\ one|opera\ mini|samsung\-s8000|series60.*webkit|series60/5\.0|sonyericssone10|sonyericssonu20|sonyericssonx10|t\-mobile\ mytouch\ 3g|t\-mobile\ opal|tattoo|webmate|webos) [NC]
RewriteRule .* - [E=W3TC_UA:_high]
RewriteCond %{HTTP_COOKIE} w3tc_referrer=.*(google\.com|yahoo\.com|bing\.com|ask\.com|msn\.com) [NC]
RewriteRule .* - [E=W3TC_REF:_search_engines]
RewriteCond %{HTTPS} =on
RewriteRule .* - [E=W3TC_SSL:_ssl]
RewriteCond %{SERVER_PORT} =443
RewriteRule .* - [E=W3TC_SSL:_ssl]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule .* - [E=W3TC_ENC:.gzip]
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} =""
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
RewriteCond %{HTTP_USER_AGENT} !(bot|ia_archive|slurp|crawl|spider) [NC]
RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc-%{ENV:W3TC_DOMAIN}/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
RewriteRule .* "/wp-content/w3tc-%{ENV:W3TC_DOMAIN}/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
</IfModule>
# END W3TC Page Cache core
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]
</IfModule>
# END WPSuperCache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
kateM82 comments:
Here is an example of a page in its orginal location that doesn't work
http://dropdeadgorgeousdaily.com/privacy-policy/
John Cotton comments:
Turn off any caching plug-ins for now - let's just get things working normally first.
Then edit the htaccess file (you've got a backup on here now!) to just:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Save permalinks again (just to be sure) and then see what happens....
kateM82 comments:
just realised there is WPsuper cache and WP total cache stuff in there, have deleted the WP supercache (i am not usign that plugin anymore).
Didnt make any difference though.
kateM82 comments:
ok, tried that, still getting 404 page, tried with permalinks set to default and I get a real 404 page (not the nice themed one, the proper ugly system error looking one)
John Cotton comments:
I'd give Francisco's suggestion a go and see what the log throws up....
Did you edit that "missing" page from the dashboard and see where the view page button takes you?
kateM82 comments:
OK, I did that with the default permalinks view page (http://dropdeadgorgeousdaily.com/?page_id=2488) this works.
Paste old htaccess code back in: http://dropdeadgorgeousdaily.com/?page_id=2488 still works.
How do I get the nice permalinks back though?
kateM82 comments:
And I couldn't do what francisco asked, it gave Server error and crashed the site.
John Cotton comments:
<blockquote>How do I get the nice permalinks back though?</blockquote>
Go to Settings > Permalinks on the dashboard menu and choose the one you want...
John Cotton comments:
<blockquote>Paste old htaccess code back in:</blockquote>
But keep the old code out of it for now....
kateM82 comments:
ok, yay, http://dropdeadgorgeousdaily.com/privacy-policy/
Custom post type & taxonomy archives still not working though.
http://dropdeadgorgeousdaily.com/dshop-boutiques/on-sale/
(and I have a big, fat, slow site, so need to get cache back on).
kateM82 comments:
actually spoke too soon, http://dropdeadgorgeousdaily.com/privacy-policy/ not working again either now, and I didn;t touch anything!
I just tried moving another page out from the parent page, and now neither are working.
John Cotton comments:
<blockquote>actually spoke too soon, http://dropdeadgorgeousdaily.com/privacy-policy/ not working again either now, and I didn;t touch anything! </blockquote>
Do one thing at a time!
Switch off the cache plugins, set the htaccess file to just the WordPress contents, set permalinks to the default.
<strong>Then check <em>all</em> your pages.</strong>
If they <em>all</em> work, change permalinks to whatever you want.
<strong>Then check <em>all</em> your pages.</strong>
If they <em>all</em> work, switch the first cache plugin on.
<strong>Then check <em>all</em> your pages.</strong>
If they <em>all</em> work, switch the 2nd cache plugin on.
<strong>Then check <em>all</em> your pages.</strong>
If they <em>all</em> work etc etc
kateM82 comments:
that is what I was doing. I haven't changed the htaccess, or switch the caching back on.
I have gone back and repeated the steps (but with all posts already out from under the parent page I have moved them too).
all pages seem to be working...
then I realised I missed one, moved it from under the parent page, checked the page now not working (also ALL other pages without parent pages also now not working). Went back, reset the permalinks, checked working ok again now, changed permalinks back to month/year/post title, still all working. Very weird!
John Cotton comments:
<blockquote>Went back, reset the permalinks, checked working ok again now, changed permalinks back to month/year/post title, still all working. Very weird!</blockquote>
Not so weird. WordPress does a lot of things when you save (or re-save) permalinks. And it stores the values in the database. Once in there, nothing will change until you save again.
A lot of plugins and themes rely on a rewrite hook to store their urls re so it's very easy to get messed up.
This still doesn't work: http://dropdeadgorgeousdaily.com/dshop-boutiques/on-sale/
Is dshop-boutiques a custom taxonomy term? And on-sale a child? How are you making those? In code or with a plugin?
kateM82 comments:
Yes that's right, it is with code (but the code was generated by a plugin... )
Here are some others that used to work and now don't - http://dropdeadgorgeousdaily.com/dshop-feature/glitterati/
http://dropdeadgorgeousdaily.com/dshop-boutiques/party-season/
http://dropdeadgorgeousdaily.com/dshop-feature/bustybikinis/
Here is the code:
/*** dSHOP ***/
register_post_type('dshop', array( 'label' => 'dSHOP items','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,'rewrite' => array('slug' => ''),'query_var' => true,'has_archive' => true,'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes',),'taxonomies' => array('dshop-boutiques','dshop-feature',),'labels' => array (
'name' => 'dSHOP items',
'singular_name' => 'dSHOP item',
'menu_name' => 'dSHOP items',
'add_new' => 'Add dSHOP item',
'add_new_item' => 'Add New dSHOP item',
'edit' => 'Edit',
'edit_item' => 'Edit dSHOP item',
'new_item' => 'New dSHOP item',
'view' => 'View dSHOP item',
'view_item' => 'View dSHOP item',
'search_items' => 'Search dSHOP items',
'not_found' => 'No dSHOP items Found',
'not_found_in_trash' => 'No dSHOP items Found in Trash',
'parent' => 'Parent dSHOP item',
),) );
register_taxonomy('dshop-type',array (
0 => 'dshop',
),array( 'hierarchical' => false, 'label' => 'dSHOP types','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'dSHOP type') );
register_taxonomy('dshop-stores',array (
0 => 'dshop',
),array( 'hierarchical' => true, 'label' => 'dSHOP Stores','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'dSHOP Store') );
register_taxonomy('dshop-boutiques',array (
0 => 'dshop',
),array( 'hierarchical' => true, 'label' => 'dSHOP Boutiques','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'dSHOP Boutique') );
register_taxonomy('dshop-feature',array (
0 => 'dshop',
),array( 'hierarchical' => false, 'label' => 'dSHOP features','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'dSHOP feature') );
Everything shows up fine in the admin too.
John Cotton comments:
I'd get rid of "'rewrite' => array('slug' => '')," in each one as it serves no purpose.
Do that, save permalinks again and see what happens.
John Cotton comments:
By the way, if you go the taxonomy list in the dashboard ( dSHOP items > dSHOP Boutiques ) and click View under the On Sale item, what url do you get and what appears?
kateM82 comments:
It's working... http://dropdeadgorgeousdaily.com/dshop-boutiques/on-sale/
http://dropdeadgorgeousdaily.com/dshop-feature/glitterati/
all working! You are a wonderful man!
kateM82 comments:
BUgger!
Once again spoke to soon.
Now the pages aren't working.
Went back, reset permalinks, tested all under default, pages and taxonomies worked.
restored permalinks.
Now pages work but taxonomies dont!
kateM82 comments:
Here is what is in the custom functions file now:
/*** dSHOP ***/
register_post_type('dshop', array( 'label' => 'dSHOP items','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,'query_var' => true,'has_archive' => true,'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes',),'taxonomies' => array('dshop-boutiques','dshop-feature',),'labels' => array (
'name' => 'dSHOP items',
'singular_name' => 'dSHOP item',
'menu_name' => 'dSHOP items',
'add_new' => 'Add dSHOP item',
'add_new_item' => 'Add New dSHOP item',
'edit' => 'Edit',
'edit_item' => 'Edit dSHOP item',
'new_item' => 'New dSHOP item',
'view' => 'View dSHOP item',
'view_item' => 'View dSHOP item',
'search_items' => 'Search dSHOP items',
'not_found' => 'No dSHOP items Found',
'not_found_in_trash' => 'No dSHOP items Found in Trash',
'parent' => 'Parent dSHOP item',
),) );
register_taxonomy('dshop-type',array (
0 => 'dshop',
),array( 'hierarchical' => false, 'label' => 'dSHOP types','show_ui' => true,'query_var' => true, 'singular_label' => 'dSHOP type') );
register_taxonomy('dshop-stores',array (
0 => 'dshop',
),array( 'hierarchical' => true, 'label' => 'dSHOP Stores','show_ui' => true,'query_var' => true, 'singular_label' => 'dSHOP Store') );
register_taxonomy('dshop-boutiques',array (
0 => 'dshop',
),array( 'hierarchical' => true, 'label' => 'dSHOP Boutiques','show_ui' => true,'query_var' => true, 'singular_label' => 'dSHOP Boutique') );
register_taxonomy('dshop-feature',array (
0 => 'dshop',
),array( 'hierarchical' => false, 'label' => 'dSHOP features','show_ui' => true,'query_var' => true, 'singular_label' => 'dSHOP feature') );
kateM82 comments:
And not sure if this helps, the default permalink for this was:
http://dropdeadgorgeousdaily.com/?dshop-boutiques=on-sale
kateM82 comments:
I have just reactivated the Custom Post Types UI plugin (which was what generated the code) and pasted back the original code (with the rewrite slugs) and everything seems to be working now.
Fingers crossed, thanks for your help.
Francisco Javier Carazo Gil answers:
Hi Kate,
First one. Default permalink are running? If they are running, have you tried to debug htaccess?
The first create a log: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog and then we continue debugging.
kateM82 comments:
Hi Francisco.. that is way over my head... can you please explains in newbie speak (for anything that isn't just html/CSS etc.. thanks)
Francisco Javier Carazo Gil comments:
Hi Kate,
Edit your .htaccess and insert this lines:
# Roll your own Rewrite log
# Log details via scale of 1 to 9
# 1 = few details, 5 = enough details, 9 = too much detail
RewriteEngine On
RewriteLog "/absolute/path/to/your/wwwroot/public_html/rewrite.log"
RewriteLogLevel 5
Then in .log file you will see what's happening exactly.
kateM82 comments:
I really don't like to touch the htaccess file. It was someone messing around with it (not me) that crashed the site, and they supposedly knew what they were doing.
Francisco Javier Carazo Gil comments:
Kate,
You can always make a .htaccess.bak (a copy of this one) and if it's wrong you can change to the backup in a moment renaming only the file.
kateM82 comments:
ok, got brave, tried that, it crashed the site.