Results 1 to 3 of 3

Rewrite Rule

This is a discussion on Rewrite Rule within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi, I have following self defined RewriteRule PHP Code: 'tek_info\.php\?ptitle=([0-9A-Za-z\-]+)' => 'tektorum-$1.html'  unfortunately this collidates with the vbSEO RewriteRule for ...

  1. #1
    Member Array
    Real Name
    Florian
    Join Date
    Dec 2007
    Posts
    52
    Liked
    5 times

    Rewrite Rule

    Hi,

    I have following self defined RewriteRule

    PHP Code:
    'tek_info\.php\?ptitle=([0-9A-Za-z\-]+)'=>'tektorum-$1.html' 
    unfortunately this collidates with the vbSEO RewriteRule for the discussions.
    For example I have a topic "Tektorum mit eigenem Chatroom?" which gets the URL "http://www.tektorum.de/moderation/4878-tektorum-eigenem-chatroom.html".

    Calling this URL results in a PHP error:

    Code:
    Warning: require(/xxx/4878-tek_info.php) [function.require]: failed to open stream: No such file or directory in /xxx/vbseo.php on line 1470
    
    Fatal error: require() [function.require]: Failed opening required '/xxx/4878-tek_info.php' (include_path='.:.:.:.:/xxx/PEAR') in /xxx/vbseo.php on line 1470
    How would I have to write my RewiteRule so it doesn't clash?

    Regards
    Florian

  2. #2
    Senior Member Array
    Real Name
    Brian
    Join Date
    Apr 2006
    Posts
    6,983
    Liked
    10 times
    if you want to keep the keyword, you can easily swap the ID vs page title, ie

    'tek_info\.php\?ptitle=([0-9A-Za-z\-]+)'=>'$1-tektorum.html'

  3. #3
    Member Array
    Real Name
    Florian
    Join Date
    Dec 2007
    Posts
    52
    Liked
    5 times
    But than I have it the way around as for the normal rewrite for diskussions...?!
    Woun't that make trouble too?

Similar Threads

  1. Custom Rewrite Rule
    By Itworx4me in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 04-10-2008, 06:54 PM
  2. help for this rewrite rule
    By magnaromagna in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 02-17-2007, 10:25 AM
  3. rewrite rule for subdirectory
    By magnaromagna in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 02-12-2007, 12:09 PM
  4. Rewrite Rule
    By KoC in forum General Discussion
    Replies: 3
    Last Post: 11-14-2006, 05:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •