|
#31
|
|||
|
|||
|
mod_rewrite question
Hi Joe,
I'm totally new to pixelpost. Your great theme is one of the reasons why I'm using it :-) One question to your mod rewrite: At the moment my urls with mod rewrite look like this photoblog/p/1 photoblog/p/2 Is there a way to use mod rewrite, so urls would be like this? photoblog/categoryname/imagename Thanks Matthias |
|
#32
|
||||
|
||||
|
Quote:
RewriteBase /photoblog/ and let me know if that works for you or not. |
|
#33
|
|||
|
|||
|
Hi Joe,
below you can see the htacces file. RewriteBase /photoblog/ does not change anything. Is an imagelink like photoblog/nature/flower1 supported by your theme. I read the forum and found some threads about a slug plugin. Unfortunatley its only for pixelpost 1.5 Thanks Matthias PHP Code:
|
|
#34
|
||||
|
||||
|
oh my gosh. i totally read your first post wrong. i was simultaneously answering an email that was related to RewriteBase and blindly replied to your msg. sorry about that.
What you are asking cannot be done without either having installed slug or modifying index.php. (I'm not sure exactly how slug does it, maybe they also modify index.php, never really looked into it)... but the 5 min howto would look like this (and i don't know how knowledgeable you are in web/php/mysql stuff) Add a rewrite rule like this RewriteRule ^photoblog/([^/]+)/([^/]+) index.php?showtitle=$2 I am not sure why you would put 'categoryname' in the URL, since it would have no purpose in the query, maybe just for a more informative URL? Then you would have to modify index.php to select from database based on image title, instead of image id PHP Code:
|
|
#35
|
|||
|
|||
|
Quote:
I just asking this for SEO! I'm using wordpress for my blog and there it is standard to have URLs like the post title... I thought your template with mod_rewrite would do the same. So I think I have to wait like others in this thread http://www.pixelpost.org/forum/showthread.php?t=4915 Would be great to have this feature as standard in pixelpost. Thanks Matthias |
|
#36
|
||||
|
||||
|
Quote:
and i would totally agree, slug (image title) and mod_rewrite URLs would be a great addition to pixelpost. I am currently running the SVN version of PP on my development server and looking into adding mod_write as a standard option in PP, but it close of end-of-semester and right now my time is short for play stuff like pixelpost
|
|
#37
|
|||
|
|||
|
Quote:
great, I can wait ;-) Thanks Matthias |
|
#38
|
||||
|
||||
|
Hey, if you want to merge my slug addon into your addon and/or Pixelpost feel free.
__________________
Jay Williams | A Different View |
|
#39
|
|||
|
|||
|
One more question, How I link to a category in the image_template page, I put the category related to an image in the EXIF info of the photo, but when I click over it, the direction is wrong, I supposed it's becouse the mod_rewrite...
Can you help me ... Try this http://www.enricmoreno.com/ push over the categorie down the EXIF info. Thanks
__________________
ENRICMORENO dot COM | my pblog |
|
#40
|
||||
|
||||
|
Quote:
PHP Code:
PHP Code:
|
| Post Reply |
| Thread Tools | |
|
|